you probaby using an older version of airflow file pattern was introduced in airflow 2.5 specifically with the apache-airflow-providers-sftp provider update 4.1.0. This addition allowed the sensor to filter files using wildcard patterns,