The terminal process failed to launch: Path to shell executable "cmd.exe" does not exist. code example

Example 1: The terminal process failed to launch: Path to shell executable "cmd.exe" does not exist. vscode

"terminal.integrated.shell.windows": "C:\\Windows\\Sysnative\\cmd.exe"

Example 2: The terminal process failed to launch: Path to shell executable "/bin/zsh" does not exist.

Open settings-search in VSCode with Cntr + Shift + p
Search for default
clicked Terminal: Select Default Shell
clicked zsh  /usr/bin/zsh, I selected zsh as I recently installed it and like to use it, you can use other terminal options as well.