Rooting the on Android 11 with Binary 7 (U7) requires unlocking the bootloader and flashing a patched firmware file . Direct Download Link
These video guides provide visual walk-throughs for unlocking the bootloader and flashing the A217F U7 root files:
Extract the AP file and patch it using the on your phone, or use a pre-patched A217F U7 Root File . Flash with Odin : Put the phone back into Download Mode .