I’ve always felt that 007 wasn’t just one person but a designation for the top agent. When one dies, another takes his identity and continues on. Otherwise you couldn’t have an agent in his 30s battling russia in the 80s and another the same age still working in 2020.
If memory serves me right, the designation is 00. I remember references to other 00's in some Bond movies. But even if 007 is the only designation, the name James Bond is not, and Bond has a fleshed out background story.