Use either "in" or "of". Two credible sources indicate they are appropriate for gerund phrases:
Extracted from definition of "experience" Oxford Dictionary site https://www.oxfordlearnersdictionaries.com/definition/english/experience_1?q=experience :
experience of something, e.g. Do you have any previous experience of this type of work?
This new approach draws on years of experience of teaching children to read.
experience in doing something, e.g. a doctor with experience in dealing with patients suffering from stress
experience in something; e.g. He gained extensive experience in the field of artificial intelligence whilst working on the project.
experience as something, e.g. I have over ten years’ experience as a teacher.
experience with something, e.g.The course provides hands-on experience with various systems.
and extracted from the Cambridge Dictionary site (with its seemingly conflicting use of "of") https://dictionary.cambridge.org/grammar/british-grammar/nouns-and-prepositions :
Extract of an example of an error with the word "experience":
"Do you have any previous experience of working with children?"
(usually followed by the -ing form of a verb)
Not: "… previous experience in working with children?"
"She has ten years’ experience in television and radio." (usually followed by a noun)
Not: "… ten years’ experience on television and radio."
And finally a pertinent discussion on the importance of context (what do you want to convey) from someone named "Yuri" (2016) here https://ell.stackexchange.com/questions/85691/experience-in-with-no-preposition-do-we-have-to-use-a-preposition-after-exp with only the extract discussing the importance of what definition of "experience" and prepositions are used for gerunds (and states that he quoted it from Longman Dictionary of Contemporary English):
1[U] knowledge or skill that you gain from doing a job or activity, or the process of doing this. It's about knowledge or skills
In this sense we can use of/in/with after experience to make noun phrases or gerund as in
"You’ve got a lot of experience of lecturing."
"my experience in many areas of the music business"
in is often followed by a gerund. However noun phrases are also possible. 'Experience in' implies the person has been (professionally) trained in something (a special field of activity) as in
"We need someone who has experience in marketing and teaching."
and after of, we mainly use gerund unless the word 'experience' is preceded by get/gain as in
"The programme enables pupils to gain some experience of the world of work."
I didn't include the with example as it isn't used with gerunds in the citation.
Hope that clarifies my answer of use "in" or "of" depending on your context.
As Yuri, I didn't find any references that were credible on the non-use of prepositions before a gerund phrase. I did find forums where persons suggested this is possible, but I'd recommend using a preposition for written work. When speaking, an American would not be shocked if you didn't have a preposition in the above example (and that is only based on my opinion).