This part is listed by BMW as BMW part number 51245A014E5 (51-24-5-A01-4E5) and is described as Genuine BMW Trunk Shock for F39 X2 with Automatic Trunk Lid Mechanism (Option Code 0316).
This is a Genuine BMW gas-pressurized spring with a two year warranty. Buying a Genuine part will usually be more expensive than an OEM or aftermarket brand but you are assured that it meets BMW's designs for fitment, performance, and longevity. It will also be the very latest design, incorporating any updates or revisions that an aftermarket brand typically will ignore.
BMW Fitments:
X2 Series
F39 X2 (2018-2023) > X2 M35i (18-23)
F39 X2 (2018-2023) > X2 sDrive28i FWD (18-23)
F39 X2 (2018-2023) > X2 xDrive28i (18-23)