Bidsignore fiile

I’m running fmriprep version 20.0.7 and recently ran into a validation error when trying to include lesion mask (e.g., sub-001_T1w_label-lesion_roi.nii.gz). in my anat folder.
I tried to include a .bidsignore file with the following text (*lesion_roi.nii.gz) but it does not work. Its important to say that I have the data preprocessed without the lesion mask file, so my data is organized according to bids.
what should I do?
thank you,
This is the command I’m running : fmriprep-docker /home/shymaa/Desktop/my_dataset/Participant /home/shymaa/Desktop/my_dataset/Participant/derivative participant --participant-label 12 --fs-license-file /home/shymaa/Desktop/license.txt

and this is the error:
1: [ERR] Files with such naming scheme are not part of BIDS specification. This error is most commonly caused by typos in file names that make them not BIDS compatible. Please consult the specification and make sure your files are named correctly. If this is not a file naming issue (for example when including files not yet covered by the BIDS specification) you should include a “.bidsignore” file in your dataset (see for details). Please note that derived (processed) data should be placed in /derivatives folder and source data (such as DICOMS or behavioural logs in proprietary formats) should be placed in the /sourcedata folder. (code: 1 - NOT_INCLUDED)
Evidence: sub-12_T1w_label-lesion_roi.nii.gz

Please visit for existing conversations about this issue.

2: [ERR] Sub label contain an Illegal Character hyphen or underscore. Please edit the filename as per BIDS spec. (code: 62 - SUBJECT_VALUE_CONTAINS_ILLEGAL_CHARACTER)
		Evidence: sub name contains illegal character:/sub-12/anat/sub-12_T1w_label-lesion_roi.nii.gz

Please visit for existing conversations about this issue.

1: [WARN] The recommended file /README is missing. See Section 03 (Modality agnostic files) of the BIDS specification. (code: 101 - README_FILE_MISSING)

Please visit for existing conversations about this issue.

    Summary:                Available Tasks:        Available Modalities: 
    40 Files, 1.65GB                                T1w                   
    13 - Subjects                                   bold                  
    1 - Session                                                           

If you have any questions, please post on

Traceback (most recent call last):
File “/usr/local/miniconda/bin/fmriprep”, line 10, in
File “/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/cli/”, line 17, in main
File “/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/cli/”, line 703, in parse_args
config.environment.exec_env, opts.bids_dir, opts.participant_label
File “/usr/local/miniconda/lib/python3.7/site-packages/fmriprep/utils/”, line 155, in validate_input_dir
subprocess.check_call([‘bids-validator’, bids_dir, ‘-c’,])
File “/usr/local/miniconda/lib/python3.7/”, line 341, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘bids-validator’, PosixPath(’/data’), ‘-c’, ‘/tmp/tmpvdqrc5ov’]’ returned non-zero exit status 1.
fMRIPrep: Please report errors to