This Fits Your 2023 BMW M340i Sedan
Full size assembly image of Plug connection from A5*1B->A79*1B (1/4)

Plug connection from A5*1B->A79*1B