This might give you some ideas. Select your mask shape, copy it, and paste it into the “Flare Center” attribute of a Lens Flare applied to another layer. That will give you a 2-second animation of the flare moving around the mask. Set that layer’s blending mode to “Screen” so you can see the layer with the mask. Apply Stroke to the layer with the mask and keyframe the “End” parameter going from 0 to 100%, with it reaching 100% at the last keyframe of the Lens Flare.
Dan