To remove only the extensions, run the the following command:
rm -rf ~/.vscode
Now all the extensions will be removed, and you can start from scratch to install the one you need.
If you want to remove it completely, run all these commands.
osascript -e 'quit app "Code"'
rm -rf ~/Library/Application\ Support/Code/
rm -rf ~/Library/Caches/com.microsoft.VSCode
rm -rf ~/Library/Caches/com.microsoft.VSCode.ShipIt
rm -rf ~/Library/Saved\ Application\ State/com.microsoft.VSCode.savedState/
rm -f ~/Library/Preferences/com.microsoft.VSCode.plist
rm -f ~/Library/Caches/com.microsoft.VSCode
rm -rf ~/.vscode
sudo rm -rf /Applications/Visual\ Studio\ Code.app