That still wouldn't match ps-161.pubnub.com
, as it (as per $
) requires the hostname to end with pubnub.
I guess you probably meant to quote (^|\.)philips.com$
?
Anyways, @jpgpi250's above link to Pi-hole's doc on regex contains all the relevant details to fix this.