The error message from Solve[], while it does not say this directly, indicates one should try
Solve[]
Solve[-x + Tan[y] == 0, y, Reals, Method -> Reduce]
This works for me in V14.2.1.