Confusion about L297 pins
The 2 Amps don't flow through the pins. The pins just measure the voltage that is developed on the shunt resistors.

In the same way, a multimeter measuring voltage typically does not have significant current running through it.