Due_date filter in API handled recurring tasks oddly

When I use the following filter in the API

/api/v2/tasks?filter=done%3Dfalse&&filter=due_date%20%3C%20now

It returns tasks with no due date (good), tasks with a due date in the past (good), and tasks with a due date in the future if they’re recurring and had an instance completed in the past(not so good).

When I use the same filter as a saved filter in the UI, it seems to work correctly.

Any idea what I might be doing wrong?