Kong parse failes for regex in url path

Hi Team, we have an endpoint with regular expression in URI path,

> ‘/testCall/(?\S+)/(?<action(^approve$|^deny$)>\S+)$’

When I tried to parse this using kong parse kong.yaml , I am getting error as

invalid regex: ‘/testCall/(?\S+)/(?<action(^approve$|^deny$)>\S+)$’ (PCRE returned: pcre_compile() failed: syntax error in subpattern name (missing terminator) in "/testCall/(?\S+)/(?<action(^approve$|^d)

I think it is getting truncated with length of character of regex used, Any suggetion what could be the issue here.

Thanks,
Sachin