Help with regex

hi guys, pls help

a have text:

content := `
text0{%text,5-8%}text1{%text,5%}text2
`

and regex

pattern := regexp.MustCompile(`(?m)\{%(?P<key>\w+).(?P<value>\w+)%\}`)

how I can find {%text,5%} and {%text,5-8%} with one regex?
in my example I can find only {%text,5%}

I will try this thakyou