PM is one of those unique roles that gives you so much exposure to many sides of the business. You could aim to move into almost any executive role with enough experience.
For example, if you're interested in sales, revenue, and marketing, you could align yourself to growth related products. You'll learn more about the business levers and operating dynamics. Start learning more about the teams, skillset, type of work. Learn more about the leaders, their priorities, their challenges. Volunteer to help out with some non-PM projects to get a better feel. This could set you on a path towards sales leadership, and possibly CRO in the future.
Or, in a similar vein, if you're a PM who loves enabling internal teams to do their best, learn about the metrics that drive that business. What are the levers that can be pulled to impact results? You're probably already thinking about how your product is contributing to that. Get closer to the teams, the leaders, the organizational structure. Meet with the COO and see if that's a path you'd be interested in pursuing.
Also, if you love product, you don't have to leave it. :)