V[た] + ことがある
V[plain] + ことがある
The grammar structure ~ことがある is used to express having the experience of doing something in the past or that there are times when a certain action or situation occurs.
Expressing Experiences: When used with the past tense of a verb (V[た]), it indicates that the speaker has experienced or done something at least once.
To express never having done something, negate the verb:
Indicating Repeated or Occasional Situations: In some contexts, ~ことがある can also indicate that something occasionally happens or that there are times when it happens.