Samsung galaxy s10 5g - sim network unlock pin

flashing stock firmware using Odin will automatically restore recovery and relock bootloader

Then, you will have to unlock bootloader (follow TWRP instructions for your device on XDA forum),

and flash VBmeta and TWRP or recovery-e, to finally install /e/