Hi @Luna Marinelli, Mario , thanks for your patience.
Pgrouting extension is available under azure.extensions for server parameters as shown in the below screenshot:
I would request you to please go through below article for more details on the same:
Introducing support for Pgrouting and PLV8 extensions in PostgreSQL Flexible Server
Please let us know if this helps or else we can discuss further on the same.
----------
If answer helps, you can mark it 'Accept Answer'