Common-drain complementary MOSFET pair to produce zero-crossing AC PWM
To have this to work, you need to drive each MOSFET independently from the MCU and implement the dead-time, to avoid having both fets conducting at the same time.
A lot of MCU with Hardware PWM functions will have this functionality available.
At this frequency, you should use a gate driver, given your voltages are quite far from GND, you can look at an isolated MOSFET gate driver.
It might be a good idea to also add a fuse, or limit the power supply current.