This answer might be late for you. But for anyone else who is having this issue, change the default terminal application to "Windows Console Host" in terminal settings.
https://github.com/microsoft/terminal/issues/12464