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
Exercise: The colon, the semicolon, and the comma
Related topics:
Verbs, objects, and complements
Prepositional phrases