Instead, it utilizes the following two mechanisms to achieve bracketed paste: On Windows, IPython does not emit \x1b[?2004h to inform terminal of bracketed paste support.
I was originally suspecting this to be a Windows Terminal problem, but it turned out to be a bug in prompt-toolkit (a dependency of IPython) since version 3.0.20.
It was working correctly for a long time but started to break recently. I observed incorrect indentation when pasting multiline code into IPython. The profile is 'commandline': 'ipython.exe', so this is just running the IPython in Windows, not an IPython in WSL, and not through SSH, just on my local machine. I guess you might be having the same problem and I want to share my findings: I'm having a similar issue with IPython recently and found a way to solve it.