No matter the license, you ST.M. are co-owner of all the applications generated by CubeMX. I think the price of using the CubeMX generator is a little bit too high. Let the programmer generate his own license on the code, as any IDE software does. Not as an addition, but the main and only license the programmer decide.
You have the drivers already.