I'm torn on that, I think you should wait but you might have to wait for up to a year to get the update. But Apple has yet to add the additional features of AirPods Pro 2 to the Max, + the upcoming transition to USB-C. For those reasons, I think it's reasonable to assume a new generation will be released by the end of this year, but you never know with Apple, especially with their audio products
They are still very good headphones even in 2023, but if you want to buy them, you should not pay them full MSRP for a 2.5 years old device.