There are a number of threads on XDA that you can read, Magisk General Support / Discussion and Magisk - The Age of Zygisk being the most relevant IMV.
Step 1: Backup all your data to multiple sources! If you mess up, you'll only have yourself to blame.
Step 2: Verify that your backups work! Despair is what happens when you find out your backups are SOL.
Step 3: Download Magisk 25.2 and install it.
Step 4: Extract the boot.img from the PE12+ ROMand copy to your POCO F1.
Step 5: Hit Magisk install, select the file you copied over and patch it.
Step 6: adb pull the patched img to your pc. This will be named something like magisk_patched-25100-fbZAW.img
Step 7: Say some prayers. If you've been good, they may work...
Step 8: Run the following command on your pc connected to your POCO F1: adb reboot bootloader
Step 9: Run the following command on your pc connected to your POCO F1: fastboot flash boot magisk_patched-25100-fvZAW.img
Step 10: Run the following command on your pc connected to your POCO F1: fastboot reboot
Step 11: ...
Step 12: Profit! hopefuly...
These are the steps I use and it works for me. Well all except the backup bits. Don't be like me, I can afford to lose my data. YMMV...