The scripture was given to an ancient Hebrew culture in a certain time and place. It was never meant to be a science book and if anyone makes it into a science book, they miss the whole point of it. Bible scholar Michael Hiser likes to say, let it speak to the ancient Hebrew living in your head. In many ways the creation story in Genesis could be the Lord’s counter response to the secular creation stories of the Babylonian, Assyrians, and Egyptians. There are some similarities but from the Genesis account it is made really clear that it was the Lord God that brought order out of chaos and not the pagan demi-gods.
https://twitter.com/OLDNorthState93/status/1621623648330055681