Nowadays, with cheap & readily-available hardware including on-chip debug, there is a lot less call for such simulation - especially if you want it cheap!
So, do you really need a simulator - could you not just use real hardware and the debugger?
"STM32 programs are not working in proteus"
Proteus is an independent 3rd party product - nothing to do with ST.
For Proteus support, see:
https://www.labcenter.com/contact/
https://support.labcenter.com/forums/index.php
https://www.labcenter.com/simulation/
https://www.labcenter.com/tutorials/
https://www.labcenter.com/support/
https://www.youtube.com/channel/UCFNnl5S532GMtwXJUYRo_wQ
Or, as @Community member said, take a look at QEMU: https://www.qemu.org/
https://www.qemu.org/docs/master/system/arm/stm32.html