At the moment there’s no library that allows you to create design matrices for group-specific effects (aka random effects) using sparse matrices.
There’s formulaic, which allows you to build sparse design matrices. The problem is that this library does not support group-specific effects yet.