To add a little more info to this issue:
I was having errors with Homebrew upgrades and a "no Git found" when opening VS Code; the error said I need to install the Xcode Command lIne tools.
I tried installing using the command line: "xcode-select --install" which began downloading the tools, but then a dialog box popped up saying "Can't install the Software".
Then, I tried: "xcodebuild -runFirstLaunch" and that didn't do anything other than return another command prompt.
I reinstalled Xcode, repeated the two steps above with no joy.
When I noodled about in Xcode, I saw a link to the Command Line tools DMG for v14 and downloaded/installed it. So far VS Code is no longer complaining about GIT and my Homebrew apps updated properly again.
I haven't tried compiling anything yet so YMMV.