The issue was with the version of the VSCode Python extension. It's still unclear to me exactly why this happened, or why it didn't affect other people, but switching to a pre-release version finally solved the issue. Issue seems to have existed from 2025.0.0 to 2025,13.2025082101 (Inclusive) based on testing.