Can't get Global Ingore to ignore a whole folder outside my project

Go to ‘Global Cursor Ignore List’ in settings. I have a folder ~/Sensitive_data that I want ignored by all projects. In the global ignore list I have included

~/Sensitive_data, ~/Sensitive_data/, Sensitive_data/*, Sensitive_data/**, **/Sensitive_data/**, **/Sensitive_data/*

But if then open a project folder somewhere like ~/projects/2025, in the chat I can say ‘list the files in ~/Sensitive_data and it will list and show the contents. I know the Global Ignore List is working to some extent because if I put in a new pattern to match a file type like **/*.jpx this works. Am I missing the correct syntax here, or does the global ignore list not work with directories?