Use it on the following lines as mentioned previously as traject is an array object and it needs to be iterated over. eventId needs to have backticks.
Example
{{#each context.journey.events.`eventId`._tenant.npoEvent.traject as |s|}}
{%= replaceAll(s.discountedPrice,"([0-9]+\\.[0-9]{2}).*",...