in reply to regexp find last word

s/(fox[^f]*(?:f(?!ox)[^f]*)*forest)/the $1/