So first the realization comes, ‘I have wasted’, and then the resolution comes, ‘I want to be useful’, and then nothing stops you. Go ahead, it is very good.
But there is no point in regretting the past. You should not sit and keep regretting. Move on in the future because you have learnt something very valuable to life in the past through all the mistakes.