According to the manual, the following are supported:
Shimano®/SRAM 9/10/11 speed
Shimano® 12 speed road
SRAM SX 12 speed
SRAM NX 12 speed
So yours should fit.
My recommendation is to buy a new cassette (105 or so,
Shimano 105 CS-R7000/CS-HG700 (11 x),) then you don't have to remove the old one from the rear wheel.
The slightly higher weight of the 105 cassette doesn't matter on the exercise bike, but it lasts much longer.