Does Homebrew get removed after upgrading Mac OS?
You should run brew update and see what happens. If Homebrew refuses to run, reinstall it using the command at https://brew.sh.

You should then run brew upgrade to make sure you're running the latest packages. If brew list shows no packages, then it looks like you'll have to re-install these packages.