Question regarding stack syntax

Hello community.

i'm trying - and failing - to figure out the stack syntax

let's say im starting from a basic pattern

d3
$ stack [
s "~ cp"
# lpf 1000
,
s "dr(3,8) ~"
]

which works.

then whenever i'm trying to elaborate on the sound, i'm getting an error

as in :

d3
$ stack [
$ every 2 (hurry 2)
$ s "~ cp"
# lpf 1000
,
s "dr(3,8) ~"
]

for which im getting the following error (which i tried to implement but still not working):

A section must be enclosed in parentheses
thus: ($ every 2 (hurry 2) $ s "~ cp" # lpf 1000)

what am i not getting?

remove the dollar sign before every.

thank you sir