Unable to close issue by using "Closing" or "Fixes" on commit

When typing a commit message to close a issue GitLab sees the reference but doesn't close the issue

I checked and on gitlab.rb I have the following line

gitlab_rails['gitlab_issue_closing_pattern'] = '((?:[Cc]los(?:e[sd]|ing)|[Ff]ix(?:e[sd]|ing)?) +(?:(?:issues? +)?#\d+(?:(?:, *| +and +)?))+)'

I'm using GitLab CE 15.7.0 Container (Omnibus)

Edited by Pedro Cavaleiro