I agree that the Bible is God’s word to us and uses stories to tell us truths. Genesis is not a science text. However, many times Jesus references accounts of the OT (such as Noah, Jonah, etc.) and discusses them as actual accounts.
Related perhaps - he was also quick to point out how some of the things in the O.T. the people got wrong - or at least clarified things and expanded on them. Such as “though shall not murder” is a good commandment, but it even means not to hate people - even one’s enemies.
And yet the author of Genesis knew might was created before the sun moon and stars - something modern science didn’t prove until 50 years ago. And Job (the oldest book in the Bible) states the earth is hung on nothing and revolves around the sun. Pretty good for not a science text