Like and such as look similar, but they are not always the same.
Like shows that one thing is similar to another. Here, you cannot use such as.
Such as means “for example.” It introduces real examples of something.
In everyday English, like is also used to give examples (sports like tennis and golf). This is correct. Such as is a little more formal and often preferred in writing.
Comparing → only like
Giving examples → such as or like (such as is more formal)
Join 100,000 people who are improving their English skills on the Shaky English app