Python Insert Variable Into Regex Javascript Validator Online