To whoever is interested, hope it helps someone.
Below is the configuration to show the current gear on a BMW F series. This was tested on my 2018 M2C with manual transmisison. Most manuals do not have gear position however since the BMW has autoblip there is a gear position sensor on the transmission.
PID: 0x 22 59 40
Equation: int(if(B==129,1,if(B==130,2,if(B==132,3,if(B==136,4,if(B==144,5,if(B==160,6,if(B==192,-1,NaN))))))))
Will report gear 1-6, 0 for Neutral and -1 for Reverse