Error using await inside code loop block

I have a loop block using the 'Code' mode to define the loop. inside this I await the call to .trigger(). the loop lambda just calls an openAI API endpoint (uses the REST API resource, not the built-in openAI one).

await (pollOpenAIRun_lambda.trigger()) this is what caused me problems because

await pollOpenAIRun_lambda.trigger() causes a run-time error :frowning_face: .

image
image

but if I just add the parentheses everything runs just fine
image

I don't have a clue what's going on, but the linter doesn't catch this and for some reason await is no longer blue