Thank you very much for this workflow!
The problem that still remains for my use case is that I don't know in advance where the words will appear (ie. it might be the case that both words only occur in the file content, instead of "stats" in the filename and "=todo" in the file content) and therefore can't use this type of dynamic filter.
But again, thanks for the help and attention.
Regards,