Unexpected indent when using "Run selection in terminal"

It seems this issue can be resolved by using the latest version of Python extensions when using Python 3.13. Currently in Cursor, we can only use outdated versions (at least 6 months old) of Python, Pylance, and Python debugger. Because of this, various bugs and security issues are being reported. I hope the Cursor team resolves this problem soon.