that’s not valid syntax. As documented:
DDEProblem(dynDelay!, u0, h, tspan, parms; constant_lags = [tau])