Not able use the value which is obtained from the previous response.

I am new to gatling, please bear me if this is a simple mistake.
val scn = scenario(“GetProjectIdGenerateReport”)

.check(regex(":(?[0-9]+)").saveAs(“Project1”))) -------> Here Im grepping and storing the value from the response.

.get(s"/codeinsight/api/project/generateReport?projectId=${Project1}&reportType=PROJECT") → When im trying reuse, it says variable not declared/ Not found.

can someone help me with this, Thanks in Advance

Remove the « s » IntelliJ prepended to your String.

I removed that and tried again, It still did not work