Python Insert Variable Into Regex Javascript Validator W3c