code: def release_regex(self, key_regex: str) -> Set[str]:
          
          keys = list(self.find_regex(key_regex).keys())
          return self.release_all(keys)
docs: Releases all locks with names that that match the given regular expression.
          :param key_regex: Python regular expression that captures the names of the locks that are to be released
          :return: the names of the locks that were released