Although rare, charging and in some cases imprisoning former heads of state does happen around the world. These are some of the many countries that have held their former presidents and prime ministers to account for wrongdoing.
https://jocolibrary.bibliocommons.com/list/share/1412410137_jclmatti/2549276432