I faced the same error in Mac when I tried to install "C/C++ Extension Pack" in VS code.
Installing "C/C++" Extension by Microsoft instead of "C/C++ Extension" Pack fixed the issue.