Add regex validation rule

I need to validate some input with regular expressions, so I added a `matches-regex?` rule.
I also added some tests for the validation namespace.