You can’t really prevent other networks from announcing themselves so until and unless Apple adds a filter, you can just join the networks you care about and save them in the keychain and try to avoid looking at the list.
The filter would be a check mark or other item to only show “trusted” networks so you can choose amongst them and not all of the networks.
To learn more why these are showing - go grab the lite version of WiFi Explorer - https://www.adriangranados.com/ - I use the paid versions for work, but most of what you need to understand how far from these devices you’d need to move to not see their advertisements is in the free version (or using the airport command line interface)