BTW, Pedri will certainly not be able to continue his EURO journey with Spain, it could be that if Pedri's injury is serious, he will also not play with Barcelona in the early weeks of La Liga.
It is so unfortunate for Pedri. However he is an injury-prone player like I said on another thread so I'm really used to seeing him like this often.

As you can see, the situation is really serious about him.

He is believed to be a great player in the future. But in this way his future can also be in pain. This look of him reminds me of Neymar. He has also been a great talent but getting injured very often at the same time. Barcelona has big plans for Pedri so I hope these injuries wouldn't hinder his potential much. Otherwise Barcelona might even think of selling him if things get more serious.
I strongly the best decision by barcelona is to sell him, though pedri was one of very important players in barcelona. You said Neymar has suffered the same thing as Pedri. But, there is a worse case in Barcelona: Ansu Fati's. Ansu fati's career being ruined by his injury.
Pedri's injury proneness will hurt his stability next season. I don't see a reason for Barcelona to keep him much longer, and this is not my first time to see barcelona's player gets ruined by his injury prone.
Barcelona experienced bad luck because one by one their talented players had to suffer continuous injuries and this made them confused about how to manage their squad in the future. With a track record of injuries like that, it feels like Pedri's career will soon end and it's a shame that this player is so great that he has to disappear when injuries continue to haunt him.
Even if it is sold, the price will definitely be quite cheap and not like what we saw in the last few seasons which managed to reach more than 100 million euros. Now Barcelona must decide on their choice while the market value is still high and also if there is interest from other teams they must discuss it before it is too late. Pedri also understands the situation so it won't be a problem for the club he loves.