In formal English, a colon must be preceded by a full independent clause. Therefore, avoid using it in the following situations.
Between a verb and its object or complement
Between a preposition and its object
After such as, including, or for example
Exercises:
The colon, the semicolon, and the comma 1
The colon, the semicolon, and the comma 2
Related topics:
Verbs, objects, and complements
Prepositional phrases