/usr/share/postgresql/ is in postgresql-10-pgrouting-scripts 2.5.2-1build1.
This file is owned by root:root, with mode 0o755.
..
/usr/share/postgresql/10/
/usr/share/postgresql/10/extension/
/usr/share/postgresql/10/extension/pgrouting--2.0.0--2.5.2.sql
/usr/share/postgresql/10/extension/pgrouting--2.0.1--2.5.2.sql
/usr/share/postgresql/10/extension/pgrouting--2.1.0--2.5.2.sql
/usr/share/postgresql/10/extension/pgrouting--2.2.0--2.5.2.sql
/usr/share/postgresql/10/extension/pgrouting--2.2.1--2.5.2.sql
/usr/share/postgresql/10/extension/pgrouting--2.2.2--2.5.2.sql
/usr/share/postgresql/10/extension/pgrouting--2.2.3--2.5.2.sql
/usr/share/postgresql/10/extension/pgrouting--2.2.4--2.5.2.sql
/usr/share/postgresql/10/extension/pgrouting--2.3.0--2.5.2.sql
/usr/share/postgresql/10/extension/pgrouting--2.3.1--2.5.2.sql
/usr/share/postgresql/10/extension/pgrouting--2.3.2--2.5.2.sql
/usr/share/postgresql/10/extension/pgrouting--2.4.0--2.5.2.sql
/usr/share/postgresql/10/extension/pgrouting--2.4.1--2.5.2.sql
/usr/share/postgresql/10/extension/pgrouting--2.4.2--2.5.2.sql
/usr/share/postgresql/10/extension/pgrouting--2.5.0--2.5.2.sql
/usr/share/postgresql/10/extension/pgrouting--2.5.1--2.5.2.sql
/usr/share/postgresql/10/extension/pgrouting--2.5.2.sql
/usr/share/postgresql/10/extension/pgrouting.control