I have seen parenthesis occasionally used in notation and would like to know what they mean. Here are some examples of them I have collected.
Around a note:
They are usually items that are either optional or merely reminders. In many cases, they may represent editorial alternatives (for instance, the editor may not see the parenthetical item as definitive, but some historical sources include it, so the editor presents it as an alternative).
In your first example, the low G is presented as a feasible alternative, and there may be an editorial decision involved as well.
In the second example, the appoggiatura probably is an historical alternative.
In the 3rd example, the fermate are probably the editor's phrasing suggestion.
In the fourth example, the flat above the note is a reminder (a cautionary, really).
In the fifth example, the key signature was probably given for G Dorian, for a piece which is actually more in G minor. Right through to Bach's time, there were remnants of the modal system still seeing use, and actually, in Bach's time, the minor mode was seen as deriving from Dorian (not Aeolian), so the difference between what Bach's contemporaries might call Dorian and what they might call minor was rather small (for this piece, possibly more E naturals showing up than might otherwise be the case).
Parentheses are used to mean different things in different contexts. You’ve got several varied examples.
The first two examples I would say would be ones of ghost notes. These notes should be barely sounded.
The third example either indicates a performance option, or it ties back into a previous phrase in the piece. It seems superfluous to me.
The fourth example is merely a reminder about the key signature.
The fifth example is surely a modal reference, just as user16935 explained very succinctly.
A sixth example could be when multiple staves overlap, and the same note is played (or already played) by multiple hands at the same time.