Jobs are triggering for the excluded folders in multibranch pipeline

We have configured Jenkins as our CI server. Git as source code management. In the one of the multi-branch job configuration we have provided to run the build when there is any change in these included folders “infra, src, gradle file”. However sometimes the build is getting trigged in the folder which is not specified i.e., “release” dir. Looking for help on the same