You are right to stay away from dating/men for now.
Anyway, what i felt was that i had no confidence because i didnt know who i was anymore away from my children and work and my exh.
So what i did was create a mind map of who I was before children/him; who I was 'now'; and who i wanted to be. It included everything - health, education, career, personality characteristics, political interests, lifestyle choices, self care, hobbies, interests... the lot!
I created SMART targets to achieve/change the things I wanted to. I colour coded stuff depending on whether it was a short, medium or long term goal.
I began to recognise myself again and it's something I revisit periodically - I'm doing one at the moment.
Another thing that helped was I asked 12 people (men and women) who I'd known between 12 months and 12 years to tell me things they liked and valued about me.
I bought a really nice notebook and coloured pens to record all of this and I can't tell you the difference it made.
You need to see your worth and your value away from men who have hurt you and see yourself for the unique and beautiful person you are.
That is where your confidence will come from.
But I can really recommend those activities.