That’s quite a bit out, so look to see if there’s any thing broken, as there is a few nylon/plastic bits on the side of the track, both tracks are the same so easy to compare.
The track mechanisms are independent so with the motor you should be able to move the mechanism back to line up, you may need a screw driver to turn the drive cog on just the one side which I had to do. (make sure the glass is in the closed position when u refit the motor and the dots on the motor are aligned) that bit of info I’ve seen somewhere and it is important.
As in quite a bit out u may have to remove the sunroof and to get to the track fixing screws and remove both tracks.
A few years ago I repaired my mates disco sunroof that would close fully, well it was rebuilt after taking it completely apart. I found that there a few black nylon sliders plus some other plastic bits that had broken so we purchased a replacement sunroof off eBay just to find that was also broken.
So after completely stripping two sunroof roofs we now finally had a fully functional one, and putting the surplus blinds and the motor back on eBay we made a bit of profit, and end up with a bag plastic bits and screws for any future repairs whatever.
Then as I was on a roll I tackled the other sunroof that my mates disco had, again removing and completely striping and rebuilding