The phrase "variety of formats" is correct and can be used in written English. You could use it any time you want to refer to the variety of ways something can be presented, such as different file types, layouts, or styles. For example, you could say, "This software supports a variety of formats, including PDF, JPG, and PNG.".
Electric cars, meanwhile, are coming in a variety of formats.
Tracks sold tickets in a variety of formats.
Trent Reznor offered up a variety of formats for the last Nine Inch Nails release.
Mr. Fahrenkopf argues that a variety of formats serves the public best.
He has explored the concept of masculinity in a variety of formats before.
The discussion can be structured in a variety of formats, like a talk show or debate.
Mr. Gray brought an activist's passion to projects in a variety of formats.
Being a terminologist, I care about word choice. Ludwig simply helps me pick the best words for any translation. Five stars!
Maria Pia Montoro
Terminologist and Q/A Analyst @ Translation Centre for the Bodies of the European Union