It is possible to separate the freehub from the cog. All it takes is a lockring tool and a chain whip, or take it to a bike shop. Here’s an example:
Your replacement freehub must be designed to work on a Wahoo Kickr Core (which uses the same freehub as other Kickr trainers manufactured since 2018).