Grafana v11.0.0: unable to capture key value in alerts notification

Just try to group by message field in your alert query - that should be recognized as a label by Grafana automatically.