code: public static void validateAttributeName(String name) {
      checkForKeyword(name);
  
      validateName(name);
  
      if (!name.matches("[a-zA-Z0-9_#]+(-[a-z]{2,3})??$")) {
        throw new MolgenisDataException(
            "Invalid characters in: ["
                + name
                + "] Only letters (a-z, A-Z), digits (0-9), underscores (_) and hashes (#) are allowed.");
      }
    }
docs: Validates names of entities, packages and attributes. Rules: only [a-zA-Z0-9_#] are allowed,
  name must start with a letter