We know that it means "despite the pain that is being experienced" because of the appearance of the word "being" and the tense of "remain". If the sentence was talking about a past situation, and "remain" was "remained", then it would mean "despite the pain that was being experienced". "has been being experienced" is ugly and hardly viable.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.