I think WD40 contains silicone.
The regular version? I know they have lots of variants.
I never hear many woodworkers bashing wd40, but I hear lots of bad stuff about silicone. I don’t use it much but I did just use it to clean my old cast iron tops.
Years ago I worked in a shop painting trucks. The mechanics sometimes used silicone spray on the windshield gaskets. We cleaned around the windows and used a product in the paint called Fisheye Eliminator. It did the job.
Charlie Jones