I used to have a MacOS menubar app to do this but have been doing it manually for the last several years. I’ve been needing something like this for a while.
https://alebeck.github.io/boring/
A simple command line SSH tunnel manager that just works. TOML config, automatic reconnection and keep-alives.