Assuming your’s are the same, with the bearings in the chainstays. To get them out I use some sockets, nuts & bolts, circular shims/washers I’ve accumulated over the years + a punch, hammer and block of wood where there’s an awkward taper! Can’t remember the sizes off the top of my head, I’d have to go and have a look in my toolbox!
To get them back in I use the same nuts and bolts, but use the old bearings with washers behind them to push the new bearings all the way home.
Edit: Removing the back wheel and letting all the air out of your shock helps manoeuvring the chainstays about so you can get at the bearings!