The latest version of macOS 15 is unable to retrieve the SSID. We need to consult with Apple regarding this issue:
Question: Is there a way for macOS to silently retrieve the SSID and BSSID? If special permissions are required, can company devices with MDM/ABM installed retrieve them silently?