I have changed your regex (actually simpler) to do what you want:
\[A\].*\[?\[\]\]?
It starts by matching the '[A]
', then matches any number of any characters (greedy) and finally one or two '[]
'.
Edit:
This will prefer double Square brackets:
\[A\].*(?:\[\[\]\]|\[\])