Based on the visual markings and technical codes, this part is a BMW Comfort Access Keyless Antenna Module.
The handwritten "X1-2020" indicates it was likely salvaged from a 2020 BMW X1 (F48 chassis), though this specific antenna is a common component used across several BMW models from roughly 2012 to 2022