Look at 6:50 at the white thing on the right. That should line up to the notch on your pen, meaning I believe that's the detection switch.
Seems the s22 ultra is actually different than I thought. Older S series devices had the switch super close to the hole, if you put the pen in backwards it'd get stuck and locked inside. Guess they fixed it by moving the switch really far up