feat: add support for regex in exception messages.