Eg '(?:foo)' is not malformed, it's just not supported. https://hledger.org/hledger.html#hledgers-regular-expressions