In some areas it is legal to use flexible copper tubing w flared connections for gas.
Copper gas line in attic.
The laundry room is built on a slab.
Or you could replace the damaged tubing with a flexible stainless connector as shown here.
In other areas the use of copper is widespread.
You should know what is acceptable in your area.
The most common gas piping is black steel.
It was run in an unprofessional manner in that it runs up from the basement and then along a door threshold and finally through a wall.
Copper has the ability to be formed in long service line coils.
You could cut a new length of coiled soft copper flare the ends and connect it with flare fitting.
Copper offers a relatively inexpensive material for service line composition.
I have just purchased a house where the gas line for the dryer is copper.
This flexible copper can easily install around obstacles between the propane tank and the house as opposed to black pipe which requires 90 degree turns for maneuvering around an obstruction.
There were problems w old style galvanized iron pipes for that reason.
If the flare fitting on the flexible stainless gas line matches the size of the flare fitting on the existing gas valve you can simply screw it on.
But it is commonly used these days.