That is actually already possible and IMHO one of the best implementations among all the password managers I know.
There is a little cog besides the URL entries. There you have many different possibilities. For subdomain, you may choose the “server” rule. For the subfolder case I would use the “starts with” rule.
(I’m in the same boat and it works fine here :-))