Right now the Sparse Regression does not support unknown parameter values ( might be in future releases using either MAP estimation or Bayesian or MINLP ). So you need to provide a parameter value inside your basis.
problem = DirectDataDrivenProblem(X, Y, p = [1.0])
I’ll write a check for that. Sorry.
I would use symbolic regression for now.