Marvel moved away from Kang and towards Robert Downey Jr.'s Doctor Doom around the time of Ant-Man and The Wasp: Quantumania, according to Kevin Feige
From the publisher’s feed, collected in the ZeroLabs newsroom.
Doom was locked in during "early 2023"