To fix this problem please set in Windows PowerShell a environment variable PYTHON_BASIC_REPL to any value for example:
$env:PYTHON_BASIC_REPL = 'True'
and then call python.exe
Than you can reach all characters entered with AltGr
I had the similar problem and i am wondering. There should also be a bugfix included in the new 3.13.4 relase. This is for all those who encountered the problem and happened to come across this page via google.
Many regards