Here is an extensive guide on how I got it to run in Windows 11:
I bought my copy of Dirt 2 from gaming dragons.
It came with the latest version of GFWL (Games For Windows Live) (such are mentioned here as well).
However, once the profile of the player has been created within the game (do not try to change player names, or it will crash on instant!), in future cases of running the game, it will crash on trying to load the profile.
Once you have installed the gamingdragons version, and follow “step 3” of the readme as in the post mentioned that I linked above.
Additionally, set dirt2.exe to run as administrator.
It may still occasionally crash, on loading the profile once in a while, but not that much anymore, that it renders the game unplayable.