That is a category mistake--neither individual ants nor ant colonies know anything at all about such things. They aren't the sorts of entities that can have such goals. Those things are consequences of their behavior, but their behavior is established by evolution--genes that produce behaviors that result in survival of those genes into the future are retained, those that don't perish. Nothing in this picture has goals, only consequences.
Their goal is to ensure the survival of the colony and establish new colonies
That is a category mistake--neither individual ants nor ant colonies know anything at all about such things. They aren't the sorts of entities that can have such goals. Those things are consequences of their behavior, but their behavior is established by evolution--genes that produce behaviors that result in survival of those genes into the future are retained, those that don't perish. Nothing in this picture has goals, only consequences.