Cannot make an @search from a valid search

This search gives me what I expect:

(@today//* union @today) intersect (not @done)

When I put that into an @search(…) it doesn’t work.

I have a feeling that the bracket matching in the @search() processor may need a tweak, but in the meanwhile, perhaps you will get the same results with the unbracketed search below ?

Remaining today @search(//@today//* intersect not @done)

or even:

Remaining today @search(//@today//not @done)

or

Remaining today @search(@today//not @done)

Yes, it’s the )'s that are messing things up. But you can include them in your saved search, you just need to escape them by replacing each ) with \).