this document might help.
Tasmota supported the matter without being a member of the matter alliance.
there are routers which do have matter-over-thread compatible hardware. Otherwise, Matter over Wifi can be also be supported if someone does look into it.