The experience of feeling as though you have wasted time is very common especially as you grow older and the pressure that comes from society on achievement and productivity.
Even small things like seeing your friends get married and shortly thereafter they're a complete family with little ones, your nieces and nephews are now in college while you seem stuck in the same place can trigger anxiety, regret and a sense of stagnation.