Please use the nextflow language server when working with nextflow. https://nextflow.io/docs/latest/strict-syntax.html