just in case you haven't already read my answer to your question stated in the comment section of another post, I post it here again.
According to my online research, such a residence permit is difficult to obtain for spouses living in different places, but it is not impossible.
The residence permit is only granted if its purpose is to establish and maintain family cohabitation. Marriage alone is not sufficient for this purpose. In addition, the will to establish or continue the marital cohabitation in Germany is required. In principle, such a marital community exists if the spouses live together in a domestic community, for example a flat. In the absence of such cohabitation, it must be proven by other means that the spouses support and care for each other. There are cases in which the separation is based on professional reasons, for example, and the continuation of the marital cohabitation nevertheless continues. In such cases, however, it is mandatory that the spouses have regular contact that goes beyond mere visits. It always depends on the actual closeness.