All trailers are suitable for ebikes. It's just a matter of how they attach. Some attach to either one side or both sides of the rear axle. The 12mm axle and the 12mm nuts on a hub-motor mean that you will most likely have to modify something.
If it's a single-sided piece with a 10mm hole, it might be as simple as drilling the hole out to 12mm. If there's still no room for it, you can make an adapter, which is just a short piece with a 12mm hole in one end and a 10mm hole in the other, which you can bolt the trailer attachment piece to.
Some trailers use a clamp that clamps to the nearside chainstay. That can be inconvenient if you have a motor wire there or a side-stand.
Here's some pictures of trailer attachments. Whatever trailer you look at, you need to check out how it attaches, then think about whether that will work on your bike or how it can be adapted.
Crank-drive bikes are not nearly as problematic as those with hub-motors because they have more standard axles.
DuckDuckGo. Privacy, Simplified.
duckduckgo.com