There should be an S&P500-N fund where you can select up to N specific companies you want to exclude, and they give you a dynamic ticker which tracks that sub-set.
I wonder if it’s technically feasible without absurd transaction costs, to either explicitly or effectively net out specific company exposure from an S&P500 basket.
Even just a calculator which could tell you, for every share of SPY of you want to not have Boeing exposure you need to short-sell X shares of Boeing.