I initially used autopep8 and had set vscode to autoformat region on paste. When I changed to black I started getting error messages about region format not supported everytime I pasted.
As I mainly use other languages, with formatters with working region support, I went back to autopep8 so I could leave it format region enabled.