We can usesuch asto introduce an example or examples of something we mention. We normally use a commabeforesuch aswhen we present a list of examples. Where there is just one example, we don’t need a comma:
The shop specialises in tropical fruits,such aspineapples, mangoes and papayas.(… for example, pineapples, mangoes and papayas.)
Countriessuch asSweden have a long record of welcoming refugees from all over the world.
Such asis similar tolikefor introducing examples, but it is more formal, and is used more in writing thanlike:
She has worked in several countries where English is spoken as a first language,such asAustralia, New Zealand, Canada and so on.(or, less formal,…likeAustralia, New Zealand, Canada and so on.)
We don’t useason its own to introduce examples:
Young kids these days seem to love 1960s rock bands,such asthe Beatles, the Kinks or the Rolling Stones.
Not: …to love 1960s rock bands, as the Beatles…
We don’t usesuch aswhen we compare things:
The group from Dublin all wore green, white or gold t-shirts,likethe colours of their national flag.
Not: …such as the colours of their national flag.