private static Object unescape(Object o) {
    if (o instanceof String s) {
      return unescape(s);
    }
    return o;
  }
Returns a boolean expression that determines whether a source feature matches a criteria defined in yaml config.

@param <T>              Type of input the expression takes
@param object           a map or list of tag criteria
@param tagValueProducer a TagValueProducer
@return a predicate which returns true if this criteria matches
planetiler-custommap/src/main/java/com/onthegomap/planetiler/custommap/BooleanExpressionParser.java