Bases filter and links to a header

Hello,

I would like to list all links going to a specific header of a file.

In my base filter, I tried

file.hasLink("My_Note#My_header")

The issue is that it lists all files linking to “My_Note”, not to my header

The link is stored in a MOC property of type LIST, so I tried note.MOC.contains("[[My_Note#My_header]]")

but same issue

Thanks for your help