The /e flag does not work on a regex. Instead, it's a flag that says the right hand side of a s///, which is a string, needs to be treated as code. The regex is the left hand side in s/// (or the whole thing in //).
Surely you must have been thinking of (?{CODE}) and friends? (See perlre)