I am experiencing the same inconsistency.
I have two Macs both running macOS 14.4.1, both Python3.12.2 installed via brew, and both with Python authorised for Location Services. However, only one of the Macs is able to display the SSID and BSSID; the other failed to display either (showing None instead).
Did you manage to find a solution to this issue?