I am able to reproduce the problem on command prompt, Python version 3.13.1.
As vimchun said, switch to version 3.12.X will solve the indentation problem.