There usually is a mod framework available, and in paradox games you often use the base game's script files as a starting point.
The point is generally irrelevant though, as a condition of uploading a mod to Steam or the game's mod system will be to give unconditional usage rights to the publisher which is incompatible with FOSS.