throw additional information for regex parse error