use TRE's built-in error handling
test Compile on invalid REs as well