How long will pain medications be needed post tendon repair surgery?

Variable. It's impossible to say with any accuracy. Different people respond to pain differently. Ideally you would need some medication for only a short period of time although cases do arise where people stay on their medication longer. Only time will tell.