Not sure if I've done something wrong but if I try to use a custom filter in an included template fragment I'm getting "invalid filter"

If I try the filter on the main template it works fine.

Is this a known limitation/bug?

Edit
Report