No, this is not expected behavior. The Python Interactive Window should execute 2+2 and return 4 immediately.
There is a problem with Visual Studio and Python 3.12 (64 bit)
(Python 3.13 (64 bit)
is facing the same problem).
It has already been discussed in this post: Preview Version 5.0 interactive window hangs in Visual Studio Professional 2022 (64-bit) (Python)
Unfortunately, Python 3.9 (the last version where the interactive window worked) is no longer officially available. This does not mean that your Python environment does not work. Normally, Python should still run your scripts correctly.
However, if you need the interactive window, I would highly recommend switching to VS Code.