Just to be clear, my keyboard & mouse are wired.I've never ever used Bluetooth mice and/or keyboards since 2008 starting using the Mac Pro 3.1. I'm really attached to any of my hardwired connections, even for my home network (UniFi) my Call of Duty is: can it be wired, just do it.
Last night as a test, on another machine (Late 2012 Mac mini running Sonoma 14.7 via OCLP) I tried to “discover” a Bluetooth Magic Keyboard with fresh batteries installed.
Despite being right next to the computer the Bluetooth discovery in System Settings just sat there spinning and spinning … and eventually the system froze! I power-cycled it and it came back up saying it had panicked … guess it’s a good thing I got my wired keyboard working, it looks like Bluetooth is broken with this combo of system, Sonoma and OCLP. 🤷♂️