Looked up a recipe and it seems pretty easy to make non-raw edible cookie dough. Cook the flour in the microwave, and then substitute out the eggs with extra butter and milk.
Cooking them shell-in at 140F for at least 5 mins is enough to sanitize them. Don't go above 140 or else they will start to cook, and hold for 5 mins or longer so the temp has time to take effect. https://www.wikihow.com/Pasteurize-Eggs
You can buy cartons (as in cardboard bottles, not regular egg containers) of "raw" eggs in the US, I'm not sure if it's an explicitly American thing or not. They come pasteurized, as to how you'd be able to DIY it, I have no idea lol