I suppose Covid has interrupted parts supply in the same way as it has new bikes.
I've noticed previously that once Shimano stuff goes short, it takes months for supplies to reappear.
There must be a risk that under the new normal in a year or so, some of the older spec bits will not be made again and slip out of the catalogue .
Although while new nine speed bikes are still being sold, one would like to think there will be spares available.
I agree with
@SkipdiverJohn, high end/drop bar nine speed components will be the first to go.
Budget/flat bar nine speed stuff should be around for a while.