Flow matching for reaction pathway generation