Since this is quite critical for me and I cannot wait for an answer how to fix it with current settings, I have to completely remove the VSCode and reinstall it, and fortunately, the new installation works fine.
I referred to this thread for complete removal of VSCode on MacOS: How to completely uninstall VS Code on mac?