I will use hereafter classical notations for triangle $ABC$: $a=BC,b=CA,c=AB$ for the sides
$p=\tfrac12(a+b+c) \ \iff \ \ (p-b)+(p-c)=a\tag{1}$
for its semi-perimeter, $S$ for its area, $r$ for its inradius, $r_A$ for its exradius relative to vertex $A$.
The purpose is, knowing $a,r,r_A$ to be able to compute $b$ and $c$.
Here is a solution, inspired by the solution given by Cuman, but more simple and - important as well - giving constraint
$$a \ge 2 \sqrt{r_Ar}\tag{2}$$
that must be fulfilled between the 3 given quantities for a solution to exist.
(a constraint that @Oscar Lanzi has also found with his geometrical solution).
We have formulas :
$$r=\frac{S}{p}, \ \ r_A=\frac{S}{p-a}\tag{3}$$
which are established here.
Remark: from (3), it is easy to establish that :
$$p=\frac{ar_A}{r_A-r}\tag{3'}$$
Heron's formula can be expressed in the following way :
$$S^2=p(p-a)(p-b)(p-c)\tag{4}$$
Otherwise said :
$$\frac{S}{p}\frac{S}{p-a}=(p-b)(p-c)\tag{5}$$
Using (3) and setting $\beta=p-b$ and $\gamma=p-c$ :
$$rr_A= \beta \gamma\tag{6}$$
As (1) can be written under the form
$$\beta + \gamma = a \tag{7}$$
Knowing the product (6) and the sum (7) of $\beta$ and $\gamma$, we can say they are roots of the quadratic equation :
$$X^2-aX+rr_A=0$$
which has real roots iff its discriminant $\Delta = a^2-4rr_A \ge 0$, i.e., iff condition (2) is fulfilled.
Knowing roots $\beta=p-b$ and $\gamma=p-c$, one easily gets the values of $b$ and $c$ using relationship (3') for $p$.