After upgrade on 2022 MacBook Pro 13" to OS12.7 and Safari 17.0 on 10-21-23, My apple keyboard and mouse no longer connect to bluetooth. Batteries are good.
After the upgrades, bluetooth connections to mouse and keyboard would not work, gave messages "connection rejected". When I deleted the devices in the bluetooth preference dialog, they were not longer detected, so I could not re-do the bluetooth setup.
Also, there was Samsung sound bar present in the BT preferences. We do not have such a device.
Also, my computer is showing in the BT preferences on another iMac.
Also, my MacBook is showing as a device on my BT preferences screen, "not connected". I don't recall seeing is listed there as a BT device before. ?? If I d-click on it, it will show this MacBook connected for a few seconds and then disconnect.
MacBook Pro 13″, macOS 10.13