Replaced my startup file with the factory settings and saved it, can I recover the old file?

I replaced my startup files with add-ons, short-cuts, favorites, etc. for the factory settings by accident, lol, and saved it as my new startup file, is there a way of recovering it? Maybe it is somehow linked with my previous projects or with the older blender versions that I still have installed (I’m currently using 3.0).

I solved it kinda, I went to C:\Users\Username\AppData\Roaming\Blender Foundation\Blender\2.XX\config and the startup and user preferences files (don’t know the difference) were there waiting for me so I just opened them and back to normal. If this happens to you but you really loose them you can copy paste the ones from older blender versions if you still have them installed.