Add support for parsing code with unsupported regexps

The code returns an error when the unsupported regexps is used rather
than failing when its parsed. This allows using 3rd party code which
references unsupported regexps but does not use them.