a flock or herd: a group of grazing animals kept and driven together.
This is the ordinary word for a body of livestock moving as one unit: the sheep, goats, or cattle a herdsman waters, pastures, counts, and defends. It names the group, not a single animal, and English Bibles reach for whatever fits the animals in view, so it surfaces as flock, herd, or drove without any change in the underlying word.
Because the picture of a shepherd with his animals was so familiar, the prophets and psalms turn it into a picture of people. A nation, and above all the LORD's own people, becomes a flock: gathered, led, scattered, or searched out by God as a shepherd cares for his animals. This is the same word doing figurative work, not a second word.
So the range runs from the plainest farm scene to some of the tenderest images of God's care. The reader should let the setting decide which is meant: a well in the countryside and a lion carrying off a lamb are literal, while a promise to gather the scattered and lead them home is the shepherd picture applied to a people.