Uiua
A bit late getting to this, but happy with this solution, despite it being nothing more than just building/summing all paths. As usual, you can drop your own file onto that solution.
D β ".......S.......\n...............\n.......^.......\n...............\n......^.^......\n...............\n.....^.^.^.....\n...............\n....^.^...^....\n...............\n...^.^...^.^...\n...............\n..^...^.....^..\n...............\n.^.^.^.^.^...^.\n..............."
# D β &fras"AOC2025day07.txt" # <- Uncomment and drop file here.
Parse β βββ1β @.βββΈβ @\n
Flow β β(+ββ»ββ»ββΓ|ΓΒ¬)ββΈβ£
Pβ β /+>0ββ¬0Γββ§(Λββ₯Flow)
Pβ β /+β£β§(Λβ+Flow)
βPβ Pβ Parse D