Javascript Use Variable Inside Regex Pattern In Python