Fix advanced input host regex matching