Is it possible set HeadersRegex with variable?

We need to set rule HeadersRegexp(Cookie, key=aaa) , the value "key=aaa" is it possible use variable to define or has any good idea ?