For reference:
In the figure $O$ is the center of the circle and its radius measures $a$ and $AQ = QB$. Calculate the area of the shaded region.(Answer: $\frac{a^2}{4}(\pi-2)$)
My progress:
If $AQ = BQ \implies \angle AQB=90^\circ$
Complete the square $AQBD$.
incorrect figure. incorrect figure, please do not consider it for any effect

$OC = r$ and $QC =R = AC.$
$O$ is centre of square.
$QO$ is angle bisector, therefore $\angle AQO$ is $45^\circ.$
$QD = R\sqrt2$
Considering $\triangle OCQ$,
$\displaystyle r^2+\left(\frac{R}{2}\right)^2=OQ^2\implies r^2+\frac{R^2}{4}=(R\sqrt2)^2$
$\therefore R = \dfrac{2r\sqrt7}{7}$
I don't see a solution...is it missing some information?
The book has another similar question but in this question $a = 2$ and answers match if we replace $a$ with $2$. Diagram below -




Considering $\angle AQB = 90^\circ$ as shown in the last diagram of the question,
If $\angle BQE = 2\theta~, ~\angle AEQ = \angle EAQ = 45^\circ + \theta, ~$ given $AQ = QE$.
Also, $\angle OFE = \angle AEQ = 45^\circ + \theta$
That leads to $\angle FOE = 90^\circ - 2\theta$. As $\angle AQF = \angle FOE$, quadrilateral $AOFQ~$ is cyclic.
So we have, $\angle AFO = \angle AQO = \angle 45^\circ$ but as $OH = OF$, $\angle HOF = 90^\circ$.
From here, it is straightforward to find the shaded area.