While Goldman wrote the novel, the film adaptation was produced by Columbia Pictures, not Fox Studios. Therefore, the rights were not held by Fox.
Goldman himself wrote the screenplay for the film and was heavily involved in the production, so he did have creative control over the adaptation, but he didn't buy the rights back.
The film rights are still held by Columbia Pictures and its parent company, Sony Pictures Entertainment.