With a MBP, you'd just restore from a Time Machine backup. If you don't have one, that would be on you.
Also not sure if the time machine backup would reinstall all the apps and settings exactly as they were before, but maybe it would, I honestly don't know the Apple ecosystem well enough for that.
All I know was that a friend of mine had a very similar issue recently with a Macbook (don't ask me which one) and she had the problem that not all data was on the time machine, some recent stuff was there, some not so recent stuff was missing and some even older stuff was there again. That's probably some user error but she was expecting everything to be backed up correctly so she did not even know that there was a problem.