Imran Khan has been embroiled in a tangle of political and legal battles since he was removed as prime minister in April 2022 in a parliamentary vote of no confidence.