I am not sure I understand the question. I already stated the controller type. I have not done anything with STM32 but if it does have proper PWM and timers I assume it can bee done just as easy.
Torque control is more complex than just simply running 3ph AC motor off DC.