Raises exception when weird regex pattern is given