L
I agree, I heard this too. Many people tried to tie it to WWII and he rejected this.Leekhongian,
Somewhere in his writings Tolkien expressly indicates that his work is not the kind of detailed allegory, with all the exact one-to-one correlations, that you describe.
That being said, as readers we are obviously free to perceive them and imagine the story that way.
That’s perfectly fine; I’m just pointing out that Tolkien himself didn’t intend it as an encoded allegory.