Is there something like this connector that is easier to buy? I need to find something that lets me connect an aluminium PCB to an FR4 PCB with part of the enclosure between them. The part of this connector that sticks into the PCB is spaced from the SMD legs enough to not have to worry about shorting any of the pins on the aluminium core. https://www.ghgmlink.com/g15-m2012-double-row-right-angle-dip-led-light-connector-straight-style-intelligent-lighting-connector-pitch-2-0mm-2-6-pin-female-mating-connector_p42.html
Connectors like this a commonly found in downlights and allow you to pass pins through the connector on each PCB.
Image Source: Photos I took myself.