Using dashboard variable inside TraceQL

That sadly does not work either.
I’ve tried all the variable syntax options as described in Variable syntax | Grafana documentation

That means:
{.contentSource = “$contentSource”}
{.contentSource = “${contentSource}”}
{.contentSource = “${contentSource:text}”}
{.contentSource = “[[contentSource]]”}

All of these sadly have the same effect: the variable is not expanded, which I checked via the Query Inspector.

I couldn’t find anything in the TraceQL documentation about using variables - the only useful result I found is this thread.
Are variables simply not supported in TraceQL or am I doing something wrong?