Ged Stokes, a former New Zealand rugby league international, underwent three operations and spent 37 days in hospital, with his conditions initially described as "critical" before it stabilised.
Stokes, however, spent time at Ged's beside when England returned to Johannesburg for the fourth Test at the Wanderers.
"He will miss England's two Test matches against Pakistan at the Ageas Bowl (starting) on Thursday 13 August and Friday 21 August.
Outstanding all-rounder Stokes played in the England side that beat Pakistan by three wickets at Old Trafford on Saturday to go 1-0 up in three-match series.
After impressing in youth cricket, Ben Stokes, now aged 29, made his name in the first-class game with Durham.
His absence from the remainder of the three-match Pakistan series could lead to a Test recall for top-order batsman Zak Crawley, who was left out to balance the side when England felt they needed to play another bowler because of Stokes's fitness problems.