Support period != warranty period. The OnePlus 15 will get 4 years of Android updates and 6 years of security patches.
Phone != The OS
After two years your battery will be almost unusable so genuinely it doesn't matter.
My only issue with oneplus phones, and I owned several of them already, is that they are running incredibly hot on normal usage, and battery capacity detoriates quickly over time.
They do have a great sleek UI and great hardware, not to mention fantastic supercharging capabilities which is a life saver sometimes, but all under the big cost.
Will it? My level of doubt is high. There is very little recourse if the company decides to cease operations, which I think they will in the near future.
I think they could easily argue successfully that post-sale software updates were always contingent on continuing operation of the company.