Offer opportunities for development
If the issue is a lack of career progression, consider offering new projects, upskilling opportunities, training, or a clear promotion path. Show the employee that the company is willing to invest in their professional growth