The rear end piece of the guide rod,,the U shaped piece, is threaded on to the guide rod itself.
Pull the recoil spring forward enough (away from the U shaped end piece) to be able to securely grip the guide rod w/a padded pliers.
You are now holding the recoil spring away from the end piece and you can unscrew it from the rod itself.
Careful not to damage the shape of it, again a padded pliers or even a small adj smooth jaw wrench works pretty good along those parallel sides.
Once the end is off, hold the rod against a bench top and release the pliers holding back the old recoil spring tension careful to catch the compressed recoil spring as it jumps off the guide rod..
Remove the spring, clean up the guide rod if it needs any work and reinstall the new one.
Some will drill a tiny hole thru the guide rod back just far enough for a pin like a paper clip to go thru. They then use that to hold and capture the new spring when compressed for reassembly instead of compressing it and holding it with those padded pliers as in the disassembly.
Either way, hold the new spring back a ways and screw the U shaped rod guide back on.
Tighten it up snug and that's it.