You need blocking diodes in the power leads going to the LED lights. Most LED lights do not come with them so the taillight circuit will back feed power into brake light circuit. Those LED lights use resistors to feed the same LEDs used for both tail and brake light functions. Filament type tail and brake light bulbs use two different filament elements so the two circuits are isolated from each other. Some LED lights come with blocking diodes so they work out of the box, but most do not.
The picture below shows one diode being used but I ended up with diodes in both the tail light and brake light lines feeding the LED bulb in all four of my trunk lights. Adding the diodes does reduce the brightness of the lights.
Later I made up a new in trunk wiring harness to feed my 4 LED lights. I wired the 2 inner lights as tail lights only. Then I wired the 2 outer lights as brake and turn lights only. I did that so when the outer light is flashing a turn it goes completely dark between flashes. It makes the brake and turn signals stand out much better to drivers behind me. Doing it that way also eliminates the need for those blocking diodes.