There is another way to run python code in VsCode windows and debug in WSL
In summary, you need a WSL instance , you need execute this instance, enter in this instance, and inside her execute "code ."
If you need further detail see oficical documentation in
https://code.visualstudio.com/docs/remote/wsl-tutorial
in other words you call vs code inside wsl and vscode run in windows machine,
Tested in windows 11