On an Apple silicon Mac like my MacBook Pro, Homebrew installs into /opt/homebrew, and your shell has to be told about that folder. The clean way is one line in your zsh login file, and it’s worth getting right on a fresh Mac.
This adds it:
echo 'eval "$(/opt/homebrew/bin/brew shellenv zsh)"' >> ~/.zprofile
brew shellenv prints export statements. When the shell runs them, Homebrew lands in your PATH, MANPATH and INFOPATH, and you also get HOMEBREW_PREFIX, HOMEBREW_CELLAR and HOMEBREW_REPOSITORY so tools do not have to ask Homebrew for them over and over. The manual suggests ~/.zprofile on macOS, and Apple explains why that file: .zprofile runs at login, including over SSH, while .zshrc runs for each new Terminal session.
Open a new Terminal tab and check it:
brew --prefix
That should print /opt/homebrew. Running the line twice does no harm either: the command prints nothing when Homebrew’s bin and sbin are already first and second in your PATH.
One caveat: name the shell. Without the zsh argument, brew shellenv tries to detect your shell, and the manual warns that this may not be correct. If you use bash, write bash there and put the line in ~/.bash_profile instead.
Further reading: Homebrew manpage, Homebrew installation, Apple Support: Use zsh as the default shell on Mac
Going deeper: Guide: keep your Mac apps in a Brewfile, so a new MacBook is one command away