Vaginal dryness and anxiety?

So typically I have no problems getting wet when I’m getting intimate with my partner but recently I’ve been having issues. I have anxiety but I’m wondering why all of a sudden it’s causing an issue?

During foreplay everything seems fine, but when it’s time for actually having sex it’s like my vagina dries up all of a sudden?

Can anxiety even cause this issue? I’ve also been quite insecure recently so maybe it could be some sort of mental block?

My partner has been really supportive but I can’t help but be super frustrated.