These instructions were developed for a project using vscode on macOS 13.0.1.
If you haven't already, you'll need an updated xcode command-line tools. Do this by running xcode-select --install
or
by going to https://developer.apple.com and downloading the XCode command line tools. I wound up with version 14.2.