Supreme Leader Snoke used it to subdue his apprentice, Kylo Ren, when the young knight lost control of his anger. Snoke's use of Force lightning varied from previous practitioners, as he projected energy against the floor, causing it to bounce upward and knock the target off their feet.
Who can use Force lightning?
Force lightning was a well-known Force ability used most often by practitioners of the dark side of the Force, especially the Sith. The ability was commonly referred to as Sith lightning due to the affiliations of its typical users and manipulation of lightning.
Why couldnt Kylo Ren use Force lightning?
While Kylo Ren couldn't use Force lightning in Star Wars: The Rise of Skywalker (whether by choice or lack of training), it was most likely Rey's Palpatine ancestry dark ancestry that allowed her to conjure it. Generally the EU does a better job at setting rules around the Force.