Flickering can be software, the screen cable or the panel.
1. Update the graphics driver.
2. Check the screen refresh rate setting matches the panel.
3. Connect an external monitor. If it doesn't flicker, the laptop's screen or cable is the problem.
4. Open and close the lid slowly. If flicker changes with the lid angle, the screen cable is worn at the hinge.
5. If flicker is constant at any angle, the panel may be failing.
Screen cables are usually cheaper to replace than the panel.