docs: public static boolean keyMatch2(String key1, String key2) {
          key2 = key2.replace("/*", "/.*");
  
          Pattern p = Pattern.compile("(.*):[^/]+(.*)");
          while (true) {
              if (!key2.contains("/:")) {
                  break;
              }
  
              key2 = "^" + p.matcher(key2).replaceAll("$1[^/]+$2") + "$";
          }
  
          return regexMatch(key1, key2);
      }