I have an error with bluetooth on android 12, Xiaomi Poco X3 NFC

Yes and in addition it would not work with the latest BLE extension, because you would have to remove that part there first (or change it to "31")

android:maxSdkVersion="30" 

from this line in the Manifest:

<uses-permission android:maxSdkVersion="30" android:name="android.permission.BLUETOOTH"/>