Repairing Leak in Refrigerant Lines
An HVAC technician should be able to repair the line, assuming the rest of the line is in good shape. Refrigerant line repair is not a diy project, as it requires specialized tools and training, as well as a license in most places.

After the leak is repaired, you'll have to recharge the system. Which also is not a project for a typical diyer.