Faulty regex consumes all memory and causes issues with pihole -q

I re-enabled all adlists and black/whitelist (without the specified whitelist regex) and it worked without issues.
I'm not very good at regex, is this an faulty one?

(\.|^)*\.services\.generalmagic\.com

If I remember correctly I created it with pihole webUI by entering *.service*.generalmagic*.com and setting type to 'whitecard whitelist'