latest xcode-select necessary on some macOS computers
This seems to be an Intel specific issue. There was one case where it was necessary to install / update xcode-select:
sudo xcode-select --install
It is needed for msodbcsql17. Afterwards install the msodbcsql17 manually with the command through brew.