When attempting to add a regex rule via the command line, as documented at https://docs.pi-hole.net/ftldns/blockingmode/, pihole is unable to validate special characters.
Example:
pihole --regex domain(a|b)[escape char].com
Gets an error message: -bash: syntax error near unexpected token `('
In order to add the pihole --regex domain(a|b).com rule, it actually needs to be formatted as:
pihole --regex domain [escape char ](a [escape char ]|b[escape char ])[escape char ][additional escape char ].com