Generally you either replace it or I've let them soak in a solvent bath, ( gasoline)
Due to EPA regs the cap vent is fairly complicated.
Let me see if I can find a picture of The gas cap and see....
No, but shouldn't be far from the ECU. Little black cube that plugs into a socket. Sometimes they're held in by a black rubber boot to insulate from bouncing and shocks.