I have just had the same issue (well not me but the Mrs on my PC) if you are using windows 10 (i assume if you're on win11 it will be the same) if you go to your computer setting
windows key>Settings>Update&Security>Windows Security>Virus & Threat Protection
at the bottom you should see Ransomware Protection, underneath that (for me its highlighted in blue) it will read "Manage ransomware protection" (click that)
On the new screen click "Allow an app through controlled folder access" windows security will pop up and click yes
On the next screen click "+ Add allowed app" (if you have just tried to open sim4 this will make life easier) then select recently blocked apps and TS4_DX9_x64.exe (if you are using 32bit then it should show x86 instead of x64) allow that through and then you should be good to go
I have had to do it with a few games in the past, some for not getting to the load screen (tomb raider 2013), and others were for not saving my game, Shadow of the Tomb Raider was one and Horizon Zero dawn is another to mention,
Either way I hope this helps it has worked for the Mrs so that is all I care about hahaha