Better regex check for allowed custom subdomains.