Same situation was with me
Father didn’t earn much but made me an engineer.
It used to kill me thinking about how I fucked my engineering life , completed it in 6 years. But that was 10 years ago.
Cracked GATE after that (AIR 3799) , though chose not to pursue masters
Today I am a software engineer with 8 yrs experience and earning well. Recently I purchased a home as well.
So don’t let your regrets kill you from inside.
People will tell you to forget about what you did and move forward, but you need to remember what you did and that regret will take you a long way if you decide to leave that behind you and learn from it.
Lastly, don’t look where others are in their life. You will reach where you want to be , but it might take some 4-5 years more to reach there that’s it. Eventually you will be there