@panamera2011: I'm on AOSP 11 and got the same bootloop to recovery. IMO Magisk it's fine now, but there's no all-working recovery for Grus on Android 10/11. TWRP 3.5.0_9 is clearly made for Android 9, but the _10 unofficial doesn't work either. I went back to SHRP 2.2 from 200301 (only minor: cannot decrypt /data when system is locked by PIN, pattern works).
Yea I solved it with TWRP officia and then put the SHRP. MIUI 12.5 sucks so I switch to Evolution X