If you can stabilize your shot around an area that has flicker, this method works very well.
- Create a composition called "average luma". You could make it in a lower resolution to save render time. Drop in your plate and duplicate it. On the bottom layer, freeze frame at a frame where you have no flicker (or as little as possible). Apply a blur to both layers and crank up blurriness a lot. Set the blending mode of the top layer to "Divide".
- Create a composition called "flicker removal". Drop in your plate at the bottom and the average luma composition on top, scale it to composition size, and set the blending mode to "Multiply".
- Flicker removed.
So if you need to stabilize around an area, you would probably want to crop the plate around that area and use that to average the luminance. It important that you linearize your footage and that you work in 32bpc.
Cheers,
Simon