The closest matches on Steam are Jagged Alliance 3, Warhammer 40,000: Mechanicus, Battle Brothers, The Last Spell and Baldur's Gate 3.
From the Steam games with at least 2,000 reviews and 80% or more positive, we keep the ones whose main player tags match XCOM 2's most closely, then show the closest first.