docs: def get_or_create_regex_namespace_entry(self, namespace: str, pattern: str, name: str) -> NamespaceEntry:
          """Get a namespace entry from a regular expression.
  
          Need to commit after!
  
          :param namespace: The name of the namespace
          :param pattern: The regular expression pattern for the namespace
          :param name: The entry to get
          """
          namespace = self.ensure_regex_namespace(namespace, pattern)
  
          n_filter = and_(Namespace.pattern == pattern, NamespaceEntry.name == name)
  
          name_model = self.session.query(NamespaceEntry).join(Namespace).filter(n_filter).one_or_none()
  
          if name_model is None:
              name_model = NamespaceEntry(
                  namespace=namespace,
                  name=name
              )
              self.session.add(name_model)
  
          return name_model