Domain level URL matching doesn't work as expected

There should be no need to apply any solution - the expectation you described is the normal behaviour and I’ve just verified that it still works for me.

Thus, I suggest reading Problems when KeePass can't determine a domain name using the PSL