Seafoam says their product is explicitly O2 sensor safe.
I ain't gonna lie, after Seafoaming my moms car, the O2 sensor went out about 2,000 miles later. Take it for what it's worth. I for sure would take it out upon first startup after letting it soak. Just redlining it while parked I don't think is a grand idea.