code: def find_var(self, query, formatted=False):
          
  
          # load the variable list to search in
          names = self._uname if formatted is False else self._fname
  
          found_idx, found_names = list(), list()
  
          for idx, name in zip(self._idx, names):
              if re.search(query, name):
                  found_idx.append(idx)
                  found_names.append(name)
  
          return found_idx, found_names
docs: Return variable names and indices matching ``query``