Comment on page
Run a diagnostic to list all the packages you've installed with Homebrew. You should see Ruby and its dependencies.
You can uninstall Ruby from Homebrew with
brew uninstall --force ruby
brew autoremovecommand will remove unused dependencies.
Postgres - Start / Stop
brew services start postgresql@14
brew services stop postgresql@14