Perhaps companies should better look after their employees and give them a reason not to leave. Many of us are fed up of being underpaid and undervalued. Add to that the increasing demands to return to an office and it's not hard to see why we're jumping ship to work for businesses that pay better and offer remote working arrangements.
I changed jobs almost a year ago and have zero regrets. I had a long tenure too. What did it get me? Maybe a 2-4% raise a year if I was lucky (which we all know is a pay cut in disguise when you consider inflation). None of us should feel that we have to be loyal to a business. That same business would lay you off in a heartbeat if it would save them money.