The 20-year-old spent the 2022-23 campaign on loan with Linares Deportivo in Spain's third tier, and he scored 12 goals and registered four assists in 40 appearances for the club during a successful spell.
During pre-season, Barcelona head coach Xavi said that Lopez would be involved with the first team this season and that has been the case in the early weeks of the 2023-24 campaign.
The Spaniard was an unused substitute in the opening two games of the new La Liga season against Getafe and Cadiz, before debuting off the bench in Sunday's 4-3 win over Villarreal.
Barcelona have now confirmed that an agreement has been reached over a new contract for the midfielder, with his terms now running until the summer of 2027.
«The player Fermin Lopez has reached an agreement with FC Barcelona to extend his contract until 30 June 2027,» read a statement on the Catalan outfit's official website.
Meanwhile, it has been revealed that there is a buyout clause of €400m (£344m) in his new deal.
Speaking after Sunday's 4-3 win over Villarreal, Xavi said that Lopez's development shows that the club should always look to their academy to produce first-team players.
«I was also given (the opportunity) and they bet on me. I have no qualms about putting people in who work. Fermin is an example. We must look at the academy and more at the economic situation that we are currently in. We will look more at home, of course,» said the manager.
«I was scared at 16 and I tell them they are not. We trust the academy and I have seen the benefits. We are going to give it to them because they deserve it. They must be used because they measure up.»
Lamine Yamal,
Read on sportsmole.co.uk