You can try using ChatGPT or a similar tool to apply the same pattern to all domains in your list with a prompt like:
"Use this pattern:
example.com##a:has(.b)
to create separate rules for these domains:
example.net
example.org
..."