re.compile() method is not part of PyMongo