If the front blinker on your 2017-2020 5-series has stopped working, you will likely need to replace the LED module. This original BMW led module fits the left headlamp on G30 530i, 540i, M550i (2017-2020) and F90 M5 (2018-2020).
This part is listed by BMW as BMW part number 63117214944 (63-11-7-214-944) and is described as Genuine BMW LED Module for Left Turn Signal, G30/F90 Pre-LCI.
BMW Fitments:
5 Series
G30 (2017-2023) > 530i B46A (2017-2019)
G30 (2017-2023) > 530i B46D (2020-2023)
G30 (2017-2023) > 530i xDrive B46A (2017-2019)
G30 (2017-2023) > 530i xDrive B46D (2020-2023)
G30 (2017-2023) > 540i (B58A 2017-2019)
G30 (2017-2023) > 540i (B58C 2020-2023)
G30 (2017-2023) > 540i xDrive (B58A 2017-2019)
G30 (2017-2023) > 540i xDrive (B58C 2020-2023)
G30 (2017-2023) > M550i xDrive N63R (2017-2019)
G30 (2017-2023) > M550i xDrive N63T3 (2020-2023)