If this is for some machine like CNC machines (lathes, milling machines, etc.) or other things that can cause bodily harm, your ESTOP needs to cut power to whatever motors or high-voltage elements exist, independently from any signals from your MCU. Basic safety regulation require the EStop to happen without software intervention. Typically EStop cuts power to a relay that then cuts power to the motors. It may also send a signal to the MCU, but you cannot rely solely on the MCU to halt the machine. For example, if somehow the clock into the STM32 were to fail (damaged part, flaky solder joint,etc.) , I don't know that NRST will actually reset the chip.
Also keep in mind that SOME of the STM32 pins are driven low or high on reset, not tri-stated.