Hello JB,
can you try simplifying the expression to just check for the Timeout status of the until_dbt_job_finish_or_error activity
@equals(activity('until_dbt_job_finish_or_error').status, 'Timeout')
If the simplified expression works without errors, proceed to reintroduce the or
function and the contains
check.