user3479219on Stack Overflow • Recommends
On “How can I install Homebrew into /opt/?”
I've used the script written by Noah Rubin;
/bin/bash -c "$(curl -fsSL https://gist.githubusercontent.com/nrubin29/bea5aa83e8dfa91370fe83b62dad6dfa/raw/48f48f7fef21abb308e129a80b3214c2538fc611/homebrew_m1.sh)"
worked like a charm! Here is his youtube video on this topic for more info; link to this video
Edit: Forgot to mention, this script installs the homebrew into /opt/homebrew