The rare guns picked up in "Stalker 2: Heart of Chernobyl" are basically powerful weapons that are very good to use. If you want to use these guns, it is best to repair them first. You can do this by Find a technician at any major base to make repairs.
How to repair rare guns in STALKER 2: Heart of Chernobyl
If you get a rare gun from an enemy, you can keep it and start repairing it. You can make repairs by finding a technician at any major base.
After talking to the technician, you can click the upgrade button to enter the repair and upgrade menu. In the menu you can see the Repair button in the lower right corner of the screen. The cost of repairs in STALKER 2: Heart of Chernobyl is quite high, so you should only repair equipment that you plan to continue using.
Some technicians (such as at "Midday Tide Base") may not have repair options until you advance through the main story.