For all of these issues re: Microsoft Python for VSCode and Black Python formatter I would check these docs or support sites:
https://github.com/microsoft/vscode-python/discussions/categories/q-a
https://github.com/Microsoft/vscode-black-formatter/issues
https://marketplace.visualstudio.com/items?itemName=ms-python.black-formatter
Could also try installing a different auto-formatter