I'd write to the editor and say you know the author. If you prefer to recuse, yes, of course, opt out. If you think you can be a fair and useful reviewer, even so, I think you could ask the editor to decide, with full transparency. (This may be sacrilege but our fields are shrinking).