Note that for the splatting into kwargs you need a ;.
However, your later tries also do not work with an added ; as an assignment returns the right-hand-side.
This works:
julia> f(;a,b,kw...) = a+b
f (generic function with 1 method)
julia> f(;data...)
3