Use regex named group as label

I’ve created a regex filtering lines
{app="slimstampen-backend-production"} |~ api\/response\/getFirstCue\/(?P<lesson>\d*,)
and want to use the lesson variable/label

Any idea how to turn it into a label that can be used in a panel? I’m working in the grafana panel editor