The word 'soul' is used for animals much more than most of our English translations show.
The words used to describe animals are generally interpreted rather than literally translated in English Bibles.
For example, most translations use the word 'creature' instead of the literal word, which is 'soul'. Very few use the literal original Hebrew word which is 'soul'.
For example the Darby Bible gets it right using the exact same word for 'soul' used in Hebrew in other places:
Genesis 1: 20 And God said, Let the waters swarm with swarms of living
souls, and let fowl fly above the earth in the expanse of the heavens.
21 And God created the great sea monsters, and every living
soul that moves with which the waters swarm, after their kind, and every winged fowl after its kind. And God saw that it was good.
30 and to every animal of the earth, and to every fowl of the heavens, and to everything that creepeth on the earth, in which is a living
soul, every green herb for food. And it was so.
2:19 And out of the ground Jehovah Elohim had formed every animal of the field and all fowl of the heavens, and brought [them] to Man, to see what he would call them; and whatever Man called each living
soul, that was its name.
https://www.biblestudytools.com/dby/genesis/1.html
https://www.biblestudytools.com/dby/genesis/2.html
There may be other considerations, such as the soul versus the spirit.
But as far as the word 'soul' is concerned, it's actually used all over the place in the Bible to describe animals as well as people.
The final say with this issue, I believe ultimately belongs to God. Very few things are explicitly told to us about the afterlife in the Bible. Everything belongs to
21 Who knows if the human spirit rises upwardand if the spirit of the animal goes down into the earth?”