The story
An extension of 3D chess, an actual chess variant seen as being very complex, and long used as a simile ("like a game of 3-D chess") in reference to geopolitics. The term 4D chess ("four-dimensional chess") became popular around 2017, in the context of US politics.
Etymology from Wiktionary, CC BY-SA 4.0.