There is indeed a post office in Heathrow Terminal 5 in June 2023. It's located in the WH Smith on the departures floor (Floor 3), at the South end (next to South Security). It takes parcels, and has some limited parcel packaging for sale (a little challenging if your parcel is large).
(photo: me)