Dash problem?

Hi, I have a 2013 sportsman 500 HO. The gear indicator on my dash is reading incorrectly. For example, when in High the indicator will sometimes indicate N for neutral or sometimes R for reverse. Sometimes noting at all when in High. The biggest problem is when it indicates R for reverse when in high…the rev limiter cuts in as if in reverse. Sometimes it happens when driving along in high.

What could be the problem here? In the dash or I’m thinking it’s the sensor or whatever it is on the right side of transmission where the gear rods attach to.

Any helpe to point me in the right direction would be noce.