Mongodb 6.0 brew installer not compatible with xcode-select 2397 xcode 14.3 Ventura 13.3

Brew installer isn’t working on newly upgraded Mac OS Ventura 13.3. with XCode 14.3 and xcode-select 2397. Brew installer complains that my xcode-select is too old and suggests I upgrade to 14.1, however, XCode 14.3 comes with xcode-select that is newer. Please update the brew installer:

==> Fetching mongodb/brew/mongodb-community
==> Downloading
Already downloaded: /Users/sipham/Library/Caches/Homebrew/downloads/81748a71a03a785f1228852c9c1e1d39eece2d85da3629b4022bdd00ebf821a9--mongodb-macos-arm64-6.0.5.tgz
==> Installing mongodb-community from mongodb/brew
Error: Your Command Line Tools are too outdated.
Update them from Software Update in System Settings.

If that doesn't show you any updates, run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
You should download the Command Line Tools for Xcode 14.1.

❯ xcode-select -v

xcode-select version 2397.