I don't know a simple way to do this, you will need extra step. The first step would be to brake your line into parts that are in the same direction (left or right angles). Then for each of your parts you can assesed its "complexity" for exemple by comparing its length to the length of the line first_point - last_point (I've seen a paper that called that "move ability" but in a different context). Finally the idea is to combine the complexities of the parts factor their length to get the complexity of the whole line.
But of course you also need to take into account the junction between the parts. But that's not the main problem, you need to be more precise. If you have a very big curve maybe you will go back near your start in the end and have a very bad "complexity" but at a normal speed it will easily pass without slowing down.
So in fact, because you care about the speed in curve, what's you actually interested in is more lateral acceleration. If you fix a realistic lateral acceleration for a normal car (let's say 300 mG, it's not a max but something everybody do) it would correspond at 90km/h at 13.48° in your road. So if you have a sharper road, you can predict that you will need to be slower. So in fact, if you look at the nodes of your lines, and you get the angle, with some formula you can get the maximum speed you can go to your realistic lateral acceleration.
Of course it's a little more complicated because between nodes there is a segment a straight line, so you need to take that into account too. Typically you should cut long segments like that to be sure that you will not consider a segment as a curve (and say you will be slow on it) where it's actually a kilometer long straight line. And to be really precise the way you cut it should take into account the expected speed here (the speeder you go the longer your segment parts would be).
As you can see, this is a complicated problem that needs a dedicated study. I've done a version of it that suited my needs, and the result is more than a thousand lines of SQL (it does some other thinks too, and that's for a whole country, but that's the main objective). It depends on how precise you want to be. The main thing to remember is that it's not only a geometry problem, because it also depend of the scale of the road (versus the speed you want to go on it). The same angle does not mean the same speed if you multiply your segments size by two. The lateral acceleration is actually what you try to predict here, so a general geometry index will always be at best biased.
ST_SetEffectiveArea
to derive statistics about a lines per-vertex curvature; it's a common simplification method, but it's values can be used to measure curvature properties.