I can still take the S Pen from my old Galaxy Note 10.1 and use ... alters that magnetic field, which the device can measure and determine what the stylus is doing and where it is.
The Galaxy S25 Ultra's S Pen silo carries hardware to charge a stylus, but the new Bluetooth-less S Pen doesn't need it.