Passing through/blocking a high voltage dual polarity signal
OptoMOS is somewhere between an optocoupler and a SSR.  It is a packaged version of what Russel describes.  Here is what Digi-Key has in stock that are in-stock, active part numbers rated over 100 V.

https://www.digikey.com/products/en/relays/solid-state-relays/183?FV=-8%7C183%2C41%7C307140%2C41%7C307321%2C1989%7C0%2Cyr0V+%7E+1000V%7C2133%2Cyr0V+%7E+230V%7C2133%2Cyr0V+%7E+250V%7C2133%2Cyr0V+%7E+280V%7C2133%2Cyr0V+%7E+300V%7C2133%2Cyr0V+%7E+350V%7C2133%2Cyr0V+%7E+400V%7C2133%2Cyr0V+%7E+500V%7C2133%2Cyr0V+%7E+600V%7C2133%2Cyr0V+%7E+800V%7C2133&amp;quantity=0&amp;ColumnSort=0&amp;page=1&amp;stock=1&amp;k=optomos&amp;pageSize=500&amp;pkeyword=optomos