I'm not an appraiser and a realtor probably can't answer that question (too much fog of war); the real question you're wanting to know is "Will MY house rise in value sufficient that the cost can be recouped?" and there's tons of variables there and many you can't know. I mean, it only takes one buyer with a desire for a metal roof and you maybe get the house sold for a premium, but most buyers (particularly in this market) are going to obsess over every cost difference.
The typical advice most real estate professionals would (or should) give is that that any single improvement between now and when you might sell the home is unlikely to be recouped. I'm not sure I'd even replace the roof at all unless you think it's bad enough it's going to deter buyers.
I do think a smart realtor/GC could, if they knew what they were doing and you trusted them, take the right house, recommend a few targeted updates up to including the roof, and have that help your house get sold at all or for a sufficient premium that it pays for themselves or more. It's hard to speculate without knowing how dated your house is otherwise, whether it has any particular unique elements (view, pool, guest house), etc.