Turn TypeError thrown from regexp validation to ValidationError
make return value from match_pattern a dict of lists