Collection-repeat with repeat_expression not working


I cant able to use “as” in collection repeat. For example
item in items | filter:x as results. Getting the syntax error,
Syntax Error: Token ‘as’ is an unexpected token at column 38 of the expression [item in items | filter:x as results] starting at [as results].
Is there any workaround for this issue?
Codepen link