Adding /e tells perl to treat the replacement part
as code, and execute it. The code is $regexes{$re}[1]. If you "execute" that, you get
the same as you would interpolate it - you get $1 $3. What you want is to execute that.
To do so, tag /ee (double execution) at the end,
not just a /e.