Not literally every mechanic word for word and only word for word, but the same core mechanics. Someone familiar with 5e will recognize most of the mechanics of BG3, for example. Same races, classes, d20 system, initiative, spells, feats, ability scores, etc.