adding regex for extracting labels from raw queries