The issue in my case was the VS Code was not up to date, as it was in the Downloads folder instead of Applications. So just move it to Applications and Update your VS Code and it should work.
P.S - If it is still not working, try uninstalling and installing all extensions