IDE does not properly recognize db schema in auto complete

Hi, everyone.

As shown in the figure, the column names of the table are underlined. It is connected to the db using the Data tools and SQL plugin. Usually, this db schema is automatically recognized and the IDE tracks the column name, but it is not recognized correctly because the table name is substituted with a variable. Is there any solution? The IDE seems to recognize the contents of the variable corresponding to the table name.