unlike the playground in python the flatten function flate the strings here the output from the playground vs the output from python of the same query and input data.
input:
["foo", "bar" , [{"text":"buz qux"}]]
query:
flatten() | filter(not(exists(.text)))
1 - playground:
["foo", "bar"]
2- python:
['f', 'o', 'o', 'b', 'a', 'r']