What's wrong with my Regex? Regex Returns ":*" at the end

I’m trying to use AWS CloudWatch integration.
Instead of hard code all lambda function names, we want to use template variables.

  1. we query Log Groups from aws account with lambda prefix
  2. we use regex to parse everything after .*lambda/
  3. But then we got the weird problem that all returning string has “:*” at the end
    image

Actually I figured out myself. Though I still don’t know what regex style/flavor Grafana is using. The following regex seems to work and can escape the “:*” ending string.
/lambda/(?<text>[^:]+)/