Detours and paths: BRST complexes and worldline formalism