sorry for pigtailing on this issue but I'm having the same problem.
I'm following the guidelines in https://github.com/nxp-mcuxpresso/vscode-for-mcux/wiki/Dependency-Installation to install the MCUXpresso tools for vscode and the installer shows this issue.
Important: I'm using a Macbook Pro M1 (arm chip). As it is known, homebrew is on a different location in this machine (/opt/homebrew) vs the usual (/usr/local/homebrew). So I wonder if maybe the installer in that page is just not designed for M1?
In response to the last question in the thread:
@mbp:armgcc%arch -arm64 /opt/homebrew/bin/brew --version
arch: /opt/homebrew/bin/brew isn't executable
Since the homebrew installation on M1 is known to have issues, I have it installed under my user, and this setup as worked ok with all the many tools I have installed before.
@mbp:armgcc%arch -arm64 ~/homebrew/bin/brew --version
Homebrew 4.0.22
Homebrew/homebrew-core (git revision e6fefa8f263; last commit 2023-06-16)
Login off, rebooting, using another M1 laptop the issue still happens always.
Thanks