Is it OK to use a socket extension when using a torque wrench, or will the extension twist when tightening and somehow mess up the amount of torque delivered?
No problems with any normal tools.
Even if the extension DID flex rotationally, the final torque at the lug nut would be the same.
Just keep her pretty straight - common sense.