Fix bad matching against subdomain regex

This pattern will match against any (domain).com, instead it should extract (subdomain).domain.com, the change fixes this.