Similar issue here but with 3.12.4 kernel, I have noted that error when printing out such --> name=input("please enter your name: "), I have to interrupt the execution and restart the kernel
The funny is if write it on a plain .py program (rather a .ipynb) it works!