The knob's internal lock nut loosened which is how the plastic shift pattern became crooked. If you want the shift pattern to remain straight after you straighten it, do the following in order.
Using a small flat bladed screwdriver, carefully pry the shift pattern out from the shift knob. It's not hard to do, it is meant to be removable. Then use a socket wrench to loosen the lock nut you'll see inside the shift knob once the shift pattern plate has been removed. Once the lock nut is loose, use your hands to tighten the knob as tight as you can get it. Then tighten the lock nut enough with your wrench so the knob will never loosen on its own again.
Then replace the shift plate into the knob so it is straight. The problem is now permanently fixed.