(PDB-950) Added validation for regexps in queries

This commit adds a validation for regexps in queries as was proposed in PDB-950
Not entirely certain this is the correct place to inject this, validate-binary-operators in engine.clj seems closer to the mark. Otherwise we're just duplicating our validation routines in multiple places.