No – this has to do with decrypting /data – I've confirmed this on my setup – you won't be able to get it working after formatting /data in TWRP. BTW you will also not be able to use Dex on your setup like this. That's a gift from Samsung to us.
The only way to overcome this currently is like I have done:
- Follow
@exocetdj guide up to and including flashing the Magisk apk in TWRP.
- From TWRP, reboot to Download mode.
- In Odin disable autoreboot and flash Stock recovery, you have to make a tar for this from the stock firmware AP, just keep the recovery file in the tar.
- Reboot to recovery via the key combo in the guide.
- In stock recovery now, format /data again - this will encrypt it.
Now reboot, you'll set up the system again and you'll have root, sharing will work, Dex will work etc.
However you won't have TWRP. It's possible to flash just the TWRP recovery again after this without formatting /data however without accessible /data it's mostly useless.