I had similar problem, but when I deleted //g, regex began to work
so I think regex in Strapi is default as global regex. Because of you delete // and show what it works 
I had similar problem, but when I deleted //g, regex began to work
so I think regex in Strapi is default as global regex. Because of you delete // and show what it works 