Report invalid regex pattern on regex search/exclude.