Context? Homebrew is working fine on Sonoma here. I do not get that or a similar message.
For instance, installing ripgrep now requires building the latest version of Rust from source, which takes three hours per Rust version; installing Pandoc requires building and storing the whole GHC; etc.