Odin and Windows is the easiest way to go as described in documentation https://doc.e.foundation/pages/revert_samsung_to_stock_on_windows.html.
You might be guided to do the job with Heimdall with this [HOWTO] (Needs expert review) Flash Galaxy s9+ to Stock Android 10 using heimdall-gui.