I’ve done this the with the ::parents method, but that is a static method.
I don’t know how data-options@ is parsed, but perhaps try substituting :: for -> ??
Also the default parameter value doesn’t seem correct, though I wouldn’t expect this error from that. You should change it to the page path value as per the API docs.
Sorry just some guesses there, I hope you solve it. Try the discord group if you get no joy here.