Would capture "(text inside parenthesis)" in your example string.
You can escape the parenthesis using the backslash.
When a complete sentence occurs in parentheses in the middle of a larger sentence, it should neither be capitalized nor end with a period—though a question mark or exclamation point is acceptable.
Just add , around your Parenthesis. for example:
In some writing, a person’s are provided in parentheses when the person is first mentioned. If there is uncertainty about the year, a question mark should follow it. Note that an , rather than hyphen, is used between the years.
Parethesis - a choice of parentheses - Grammar Monster
When parenthetical content occurs at the end of a larger sentence, the closing punctuation mark for the sentence is placed outside the closing parenthesis.
Equations with parentheses: decimals & fractions …
Yes. Grammatically speaking, as long as what is inside each level of parentheses is grammatically correct, and what is outside the outermost level is also, the whole sentence is grammatically correct.
Evaluating expressions with & without parentheses …
Whatever the material inside the parentheses, it must not be grammatically integral to the surrounding sentence. If it is, the sentence must be recast. This is an easy mistake to avoid. Simply read your sentence without the parenthetical content. If it makes sense, the parentheses are acceptable; if it doesn’t, the punctuation must be altered.
Sal evaluates an expression with and without parentheses
The old typographical convention which I was told years ago by a retired typesetter, is that if one has nested parenthetical expressions, different characters are used for the inner parenthetical than the outer, so the outer expression is parenthesis, the next level of parenthesis is square brackets, and the next set after that is parentheses again, or sometimes curved brackets, so the pattern is (). I have most often seen two layers of parentheses in religious writing, where a referenced Bible verse will be quoted in full in parentheses, and the citation--chapter, verse, and translation--will follow the quotation in square brackets immediately before the closing parenthesis.