First thoughts...

Try sidechaining the compressor as a bass insert, with the sidechain input being the kick drum and switching between feed back & feed forward modes once you get the threshold right…then tweak the attack & tune the release to match the beat…
Or even the other way around, and compress the kick drum from a sidechain input off the bass.

Cubendo helps here as you can run the VST3 version