Creates a new RegexRule with the given pattern and message.
pattern
message
const RegexRule(this.pattern, this.message);