code: static FieldPath fromDotSeparatedString(String field) {
      if (PROHIBITED_CHARACTERS.matcher(field).matches()) {
        throw new IllegalArgumentException("Use FieldPath.of() for field names containing '˜*/[]'.");
      }
      return empty().append(field);
    }
docs: Returns a field path from a dot separated string. Does not support escaping.