Oh to answer your main question, how can you get back your confidence with women?
Understand that it was nothing you did wrong to get her to ask that specific question, and it was her shit test that got you. It happens, we fail shit tests. So what?
If a girl says something that affects your state of being, it’s a shit test. Keep that in mind.