How can I add an optional dashboard filter for a nested query (built with visual query builder) with 2 custom columns at different?

For SQL based question there are parameters that can be used to filter nested query.

{{my_filter}} can be added in the query + linked from the dashboard. Even if the my_filter column does not appear in the final result.

When switching to a query build with visual query editor (a nested query with custom expression and a saved question) only the two columns that appear in the final output are available to be selected as filters from the dashboard.

I'm unsure whether what I'm trying to do is supported but I found a couple of issue that make me think it should:

I believe that not all columns are available is related two the second custom column, if I remove it, all columns are available. As soon as I add it, only the two custom columns are available.