Setting Column Labels Dynamically (when different to column names)

Hello, I've looked through the forum posts, so apologies if this is answered elsewhere already and I just haven't found it.

I am trying to use dynamic column settings to set my column labels dynamically. I don't want to use {{ item }} because that just yields the actual column names in my SQL tables.

I have a query, which feeds into a multiselect listbox, which maps column names to column labels, obtained from a dedicated postsql table.

How do I use the column names in {{ item }} to obtain the respective column label from my map of column names to column labels in my multiselect listbox or query?

This solution here seems to manipulate the original column names to look more readable. But I want the mapped values.

Solved! I discovered the preloaded javascript section. This post helped a lot: