@aaribaud Not sure if I misunderstand you but that’s precisely the reason why you are prompted for "location" permission when you want to share the list of devices nearby. You are not able to have apps look at the list without also sharing where you are.
It’s like "show me a picture of your garden so I can count your trees" but then the app can tell where you are because palm trees don’t grow in Alaska.