No mention is made of this (that I can see, anyway) in the KM wiki, but when referring to a KM variable, you need to do this:
%Variable%some_KMvar%
and NOT this:
%variable%some_KMvar%
In other words, use a capital V for variable.
Also, do not omit the %Variable% part in your regex.