I cannot get it to work for me 20 subdomains.domain.com… It seems the browser extension cannot differentiate subdomains.

Wonder if there is an easier solution for those selfhosting?

The general Bitwarden discussion does not help: https://community.bitwarden.com/t/we-have-lots-of-subdomains-which-use-different-accounts-now-all-are-suggested/2332/6

That thread links to the official documentation here: https://bitwarden.com/help/uri-match-detection/

I have tried all input methods and none of them consistently work.