Exact solutions of (deformed) Jackiw–Teitelboim gravity