Every time a train rumbles to a stop, the energy generated by all that friction is converted to electricity
Friction is how classic braking work, and all the energy that goes into friction is lost. Regenerative braking typically rely on magnets and rotors to slow a train. When a train brake, it uses part of its kinetic energy to spin a rotor, which generate electricity using spinning magnets.
The article is otherwise interesting, it's just unfortunate they got the basic physics wrong.