I managed to get around the error by setting maskRe as a function, like the following:maskRe="function(){return eval('/\\\\d/')}()"It looks like in CQ.utils.Util.formatData only the 'regex' field is evaluated, not maskRe.Hopefully that helps someone!