Yes, I think this answer covers all of the cases I can think of, barring some more advanced approach like using sampling to compute the second Renyi entropy.
One other comment is that while the first code formula shows two disjoint subregions with a single site each, one could let those subregions grow to two or more sites by just leaving more indices uncontracted, but of course the computational cost would scale exponentially so ultimately one can't let the sizes of the regions grow too big.