Validator comparisons

[1.7.x] Fixed #22588 -- Fix RegexValidator `__eq__`
Compare parameters instead of re.pattern instances, and add the other
parameters to the comparison. Also add a `__ne__` to make `assertNotEqual`
work properly.