Use a comma before “such as” and “including” when the words that follow are an aside.
No comma is used before “such as” or “including” when a sentence wouldn’t make sense without the words that follow. In other words, the “such as” or “including” phrase is essential to the idea.
Commas are not, not, not used after “such as” or “including.”
Note: “Including” and “include” are often misused – use them when listing some of a particular thing but not all of it. “Spaniel breeds include English Springer and Sussex.” You needn't end a sentence like this with "among others" or "and more" because using "include" implies that you're not providing a complete list. When listing all of a particular thing, use a word like “are” or “comprise” or a phrase such as “composed of.” “The spaniel breeds are American Cocker, American Water, Clumber, Cocker, English Springer, Field, Irish Water, Sussex, and Welsh Springer.”