I'd agree with you, but just to clarify. The fact that you actually used path("fastq1") instead of path(fastq1), named the input file fastq1 in the script section of the process, which is why Nextflow is complaining about No such variable: fastq1.
And as Mensur said, issue is the same for fastq2.
I'd recommend watching the training that happened last week and is available on youtube: https://www.youtube.com/watch?v=nzR8DRq13nE