Hi. Vaginismus is a psychosomatic disorder in which the muscles of the vagina contract involuntarily, which can lead to pain or even the inability to insert objects, including fingers, tampons, or penis, into the vagina. Symptoms may include feelings of discomfort, pain, tightness, or cramping during attempts to insert objects into the vagina, as well as fear or anxiety before intimate contact.
BellaBeat.com has lots of helpful information on this topic here.