The regulator itself has three pins that goes into a connector. The regulator stays with the chassis.
The filter capacitor is a "soldering star" type - not a snap-in. They are known to go bad.
Also check the rectifier diodes. I've seen cases where owners fitted schottky types, - not sure why, presumably in a misunderstood attempt at improving something,
- and they are no good in this position. They typically go with a bang.
Martin