Cant Validate Email via regex in bahmni

Hi, i am trying to validate an email address in bahmni by configuring the registration app.js in bahmni_config. here is the config “fieldValidation” : { “Email” : {“pattern” : “/^[a-z0-9._±]+@[a-z0-9-]+\.[a-z0-9-.]{1,6}$/”, “errorMessage” : “Email is not valid”} }

i have validate the regex via regex tester online but somehow in bahmni it is not working. can someone help me about this issue?