How can I check if a Bluetooth device is still paired?

I tried printing listpicker.selection to a label and it gives me true even though it says in the docs that it should output a string:
Screenshot 2024-07-03 044143
What is it supposed to return? The address and name of the selected bluetooth device right?

EDIT:
This guy here had the exact same problem I'm having. You started helping him and then I don't know what happened afterwards. No one has helped him since.

EDIT 2:
Another guy asked "how to save bluetooth mac address", unanswered. See the last reply.