Alloy - Loki - how to create a new label based on the regex content from another field in the JSON log line

Hi Tony
Thx for the help

i have added the following code to the alloy - loki.process :

// test
stage.static_labels {
values = { page_group_label = “other” }
}

stage.match {
selector = “{properties.requestUri=”/“}”
stage.static_labels {
values = { page_group_label = “home” }
}
}

Json:

error msg :

any suggestion?