You can do this in either direction, on separate or same PNRs. No problem at all. I’ve done this multiple times on Chinese passport which has the same UK rules for transit as for Indian passports.
the only exception is Qatar - QR will refuse to board you if you cannot enter the last destination on QR ticketed point as a final destination. As long as you don’t fly QR you are good.