does this apply to defendant ?
the most authoritarian places in the world wouldn't charge defendants for "lying"
In America, the defendant generally has the right not to testify against himself by remaining silent, both in court and when questioned by agents of the state out of court. Not a right to lie. This is why criminal defense attorneys advise everyone to shut up, shut up, SHUT UP without a lawyer present. Police can and will attempt to catch you in a provable lie.
> the most authoritarian places in the world wouldn't charge defendants for "lying"
What on Earth is this second part of your comment supposed to mean?
Do you expect to be able to lie to the government in an authoritarian country? And not be arrested if they catch you in the lie there? And not be charged or worse if they consider the lie serious?
From the cited statute:
> Subsection (a) does not apply to a party to a judicial proceeding, or that party’s counsel, for statements, representations, writings or documents submitted by such party or counsel to a judge or magistrate in that proceeding.