In my case a simple brew upgrade; brew update resolved the issue. Running Elixir 1.15.6 on OTP 26 on a M1, 2020.
brew upgrade; brew update