What carrier do you have?
I have Verizon and while there is no "official" way to restore messages, if you factory reset your Verizon phone, during the set up it will ask if you want to restore SMS. I once got messages from 2years prior when setting up a device. They can do that but cannot just allow you to restore messages accidentally deleted. I mean right now I have messages back to 2018 and I just got this phone at release early last year, so...
I guess it depends on how important the message is and what you're willing to do or try to get it back...?