I wrote a URL handler on MacOS where I can configure rules to define which browser will actually open the URL. Rules can be configured based on a URL regex or currently open Slack workspace.
You can target different browsers, including profile (Chrome) or container (Firefox).
I hope to open source this at some point.