To repair guns and other items in Stalker 2 you need to speak with a technician.
You can easily find one in each major town.
Lens
Lens is the first tech guy you meet in the game. He's at the Zalissya of Lesser Zone.
It's the building with a car on top of it.