I think your proposal is reasonable. However it depends how exactly post tags will get implemented, which is still rather vague. I dont think it makes sense to implement federated hashtags before we have post tags in Lemmy figured out.
In any case your tool looks very useful as a stopgap, and can help to test how hashtag federation can work in practice.