That's not a real concern. There's plenty of filaments with great chemical resistance. I've been running a vented gas cap made from the same stuff as the light lenses I made. 4 years strong, no degradation yet.
That and an adapter for my airbox. That's right in the gas flow zone and it's fine too. Made it the same day as the gas cap.