Investigating galaxy-filament alignments in hydrodynamic simulations using density ridges | Synapse