Hmmm. Your version is known to be an issue. See here:
“We use
asyncio.iscoroutinefunction
to determine whether the current contents manager is sync or async (#1260)”
Even though the error there doesn’t match yours, I suspect since ‘coroutine’ is involved in yours, that it is related. Try downgrading to 1.16.2 like the original post there says?