Nylon is a petrochemical. There are organisms and bacteria that digest crude oil.
Nylon is not a hydrocarbon, it's a polyamide, and nylonase hydrolyses it at the amide linkage, entirely different chemistry than the enzymes that oxidize natural hydrocarbons.
Aspirin is also a petrochemical. I would advise that if you get a headache, not to apply the same logic. Drinking 20W50 is probably not going to make you feel better.