How to root Samsung Galaxy S10/S10e/S10+
I managed to root my Samsung S10e using topjohnwu's Magisk-based work. Here is the procedure, it also works for S10 and S10+:

https://topjohnwu.github.io/Magisk/install.html#samsung-system-as-root

The procedure is rather complex, but fortunately a YouTuber has made an easy-to-follow video:

https://www.youtube.com/watch?v=o3a8YnWT3yk

The video is directly based on John's instructions, so I recommend reading/watching both before each operation to make sure you understand correctly before executing.

The only drawback of this method is that when you want to reboot your device, you will always need to press simultaneously Bitxby+Power+Volume Up until the logo appears. If you boot normally, it will start normally but you won't have root.

Dedicated xda thread (including donation links for John): https://forum.xda-developers.com/galaxy-s10/development/magisk-root-galaxy-s10-series-t3918699