First of all, check these - 1. Whether the Bluetooth device is on. 2. Both devices should be charged sufficiently. 3. Both devices should have Bluetooth features. 4. Both devices should be placed close to each other. If you have done this all, then you have to just restart your MacBook M1 Pro and your Bluetooth devices.