Shekhar contested the Assembly bypolls in the year 2016, which followed death of his father Basant Kushwaha in the same year. Kushwaha was elected to Bihar Legislative Assembly in 2015 Bihar Legislative Assembly elections by defeating the Indian National Congress candidate Mohammad Shabbir by a margin of 4000 votes. However, before assuming oath for the office of legislator, he died. The premature death of Kushwaha ensued a sympathy wave in the constituency, which resulted in Shekhar defeating his father's political rival Shabbir by a margin of over 18,000 votes. Both Kushwaha and Shekhar were elected on the symbol of Rashtriya Lok Samata Party of Upendra Kushwaha.[2]
In 2018, Shekhar joined a revolt of the Rashtriya Lok Samata Party legislators against party president Upendra Kushwaha. At the time of this rebellion within party, RLSP had three member of parliament and two members in Bihar Legislative Assembly, besides a member in Bihar Legislative Council, Sanjeev Shyam Singh. The three legislators from the state's bicameral legislature, Lalan Paswan, Sanjeev Shyam Singh and Shekhar himself, declared themselves to be the real RLSP and caused a fraction within the party accusing Upendra Kushwaha of serving his own interest. The defecting legislators also demanded a ministerial berth in state council of ministers for Shekhar.[3] Upendra Kushwaha had left National Democratic Alliance (NDA) by the time; his party RLSP had contested the 2014 Indian General Elections and 2015 Bihar Legislative Assembly elections as a part of NDA alliance. Shekhar and other defecting legislators announced in a press conference that they will remain in NDA.[4]
In 2019, Shekhar along with his two other colleagues in RLSP joined Janata Dal (United) officially.[5] Shekhar was fielded by JD(U) as its candidate from Harlakhi Assembly constituency once again in 2020 Bihar Legislative Assembly elections. He defeated Ram Naresh Pandey of Communist Party of India and retained the seat, becoming the MLA for the second time. Then in 2025 he won again 3rd consecutive time.[6]