Don't use Regex module inside Exception, as it may not be available