A metaphor is not literally true.
“A metaphor is a figure of speech that describes an object or action in a way that isn’t literally true, but helps explain an idea or make a comparison.”
https://www.grammarly.com/blog/metaphor/
“a figure of speech in which a term or phrase is applied to something to which it is not literally applicable in order to suggest a resemblance, as in “A mighty fortress is our God.”
https://www.dictionary.com/browse/metaphor
You just said the “Jewish scholars understand the metaphorical or literary nature of these stories” and I was agreeing with that.
So, the original author(s) actually believed the world was a literal flat earth with a solid dome for the heavens.
This is often claimed, but I’ve yet to see any convincing evidence of this. Please support your statement that they actually believed “the world was a literal flat earth with a solid dome for the heavens.” Just because the Bible uses metaphors does not mean they also claim it would be literally true.
https://debatingchristianity.com/forum/viewtopic.php?p=1085338#p1085338