If you do want to do on a sports bike just carry on up to Tremp rather than turning off towards Ager. Then you miss out the mountain pass. The road up to Tremp continues alongside the river valley and is amazing as well.
Amazing scenery and a mix of great back roads and a mountain pass then some fast sweeping bend roads. Finishes off in Alquezar which is worth staying over before finding another amazing route home. I did this route on a bmw GS. There are sections you wouldn´t want to do on a sports bike. But after the Ager mountain pass you´d be fine. From the N230 onwards it´s amazing for sports bikes