rules:changes do not work with Merge requests

Summary

When I use rules:changes in a monorepo with MR pipelines, the jobs always run, either if the files in the specific folders do not change.

Steps to reproduce

In my project I have two folders client and api`, and want to run jobs for a folder only if its files change.

job1:
  stage: build
  script:
    - echo "hello job1"
  rules:
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
      changes:
        - api/**/*

job2:
  stage: build
  script:
    - echo "hello job2"
  rules:
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
      changes:
        - client/**/*

What is the current bug behavior?

On Merge request pipelines, the two jobs always run, even it I make changes to only one folder. For example, when I change files in api, job2 runs even when I am using changes:client/**/* in it.

What is the expected correct behavior?

The jobs run only if changes are applied to the correspondent folders.

Example project

Here is an example project https://gitlab.com/daoudi.mohammed/dummy-gitlab/-/pipelines

In https://gitlab.com/daoudi.mohammed/dummy-gitlab/-/pipelines/377544881, although I changed a file in api folder but both job1 and job2 have run.