I agree with what @Hearth said. In addition, I would like to say that if the current values you need are high in the power domain you need and there is a high voltage difference between the input and output voltages of the LDO, the use of LDO is not ideal for you (exactly like the scenario you are in: 12V - 3.3V = 8.7V This may not seem like a high value at first glance, but experienced people will know that this is actually a very high potential difference, especially for such circuits).
The basic formula @Hearth gave works for every LDO, you can do the calculation accordingly then compare the results according to datasheets' thermal information sections.
What you need is a buck converter if you don't want to boost the voltage (for example from 12 Volts to 15 Volts or higher). There are many options for this, of course you will need to do a few simple calculations to choose the Buck converter you need.
You mentioned STM32F030, the current this processor draws at the highest frequency with all peripherals active should be around 100 mA. The actual current you need may be much lower than 100 mA, but if you want to guarantee your power domain, I recommend using a Buck converter just in case.
Note: Buck converters also have their own advantages and disadvantages. You should search for details and read at least a few application notes, then you will have enough data and knowledge to choose the right buck converter for you.