This is an important point. The foundations for BG3 were laid circa 2011-2012, when they started development on the first Original Sin game. They continued refining the engine and the toolset throughout the decade.
I think it's fair to say that BG3's combined development took about 11 years.