jyc
Here’s what I use to reinstall the main branch of the neovim Homebrew package:
main
neovim
brew unlink neovim && brew install neovim --HEAD --fetch-HEAD
My searches weren’t turning up good results.