Implemented RegexUtil regex validation

The RegexUtil is now able to validate the given regex which allowes to
ensure that only valid regex patterns are used during search