how to bake animation sequence in sequencer with root motion

See here:

Mirrored Root Motion sequences not working properly since UE 5.8 - Development / Character & Animation - Epic Developer Community Forums

You may be omitting step 1 of the process (which can remove root motion), everything else is the same as any tutorial you might find online for mirroring sequences.