Using dynamic value in SQL 'from' statement

What are you trying to do? (please be as specific as possible and include relevant screenshots, code snippets, and reproduction steps)

I want to generate dynamic query based on the variable data.

I have a number of tables in my db that have a name like abc_x where x is an ID of a specific component.

What I want is to have a query like
Select *
From public.“abc_x” where x is a component variable value.

What have you tried so far? (please link relevant docs and other forum posts)

I have created a variable that generates the right dynamic value, but SQL editor returns an error

even though when typed in manually the value works

Relevant links: