I feel like I’ve only seen contains (keywords) in search constraints but not an expression like you’re doing.
contains (keywords)
Could try: message content:filtered:is not empty and see if it is an option in the filter as a constraint
message content:filtered:is not empty