If the flex drive shaft is flopping around in there, it may be that the liner (the extruded plastic star-shaped spacer inside) has failed. Or perhaps the drive shaft itself is on the way out.
If you Google "Stihl parts diagram" for whatever model you're interested in, you'll find parts diagrams and part numbers from the UK and Europe, where the gubbamints don't let Stihl get away with hiding and restricting access to basic information like in the freedom-loving US of damn A.
This will enable you to at least do some research and cross-referencing. If you can, perhaps, figure out that the outer tube and the parts at either end are the same, you may be able to figure out the odds of a solid driveshaft being compatible. Hard to say, but there's a chance.
For example:
https://www.diyspareparts.com/parts/stihl/group/brushcutters-1/
Part number in hand, you would then need to persuade a Stihl dealer to cooperate with your wild plan.
And then the part would very likely be a significant fraction of the cost of just buying the machine you need, with no guarantee it would work or make the improvement you're looking for.
Will it be worth it in the end? Ehhhh...