Now that the cases are split we see the issue. The rear bearing is shot.
3. Behind that rear bearing is a resolver of some kind (my guess is it reports shaft position/rpm to the controller). It needs to be removed to get the bearing off. It is a single nut that is easily removed with a small impact driver. The reluctor wheel is keyed and just slides off the shaft. Mark it for which side goes on the shaft first. If you forget, look at the witness marks on the shaft and reluctor.
4. Pull the bearing off the shaft (if yours is on the shaft) with a small bearing puller. Two open end wrenches used 180 degrees off from each other would work also. My bearing was not too tight on the shaft. If your bearing stayed in the housing you will need to remove the resolver from the rear of the case and press the bearing out that way using a drift or deep socket. Looks like 3 small allen bolts to remove the sensor. I would mark it for orientation before removal.
One thing I would note is that if you look close at these pictures the resolver sensor and reluctor wheel are damaged. I imagine this damage was from the bad bearing allowing the shaft to orbit excessively causing contact. In this case, the system still functions fine. Your damage may be beyond this point. You won't know until inspection. I doubt this is an easily purchased part. Also, my truck will throw a code when I wash it. My guess is water gets in the windings of this sensor due to the damage. Code clears on it's own when everything dries.