Make the config validator more strict for correct regexes