Prometheus has recently added support for matchers in labels API (`/api/v1/labels` and `/api/v1/label/<label_name>/values`) in https://github.com/prometheus/prometheus/pull/8301. Cortex needs to do the same to stay compatible.