forgot where this connects (picture)

It is most definitely not a regulator, it's a capacitor used as filter for noise suppression.
A regulator would have 3 terminals anyway, this cap has only 2; the body which is grounded and the wire end.