Let $X = \mathbb{A}^1(\mathbb{C}) \cong \mathbb{C}$ and $F$ be a sheaf on $X$. We call $F$ to be a weakly constructible sheaf (in this particular case) if there exists finite set of points say $S$, such that $F|_{X \setminus S}$ is a local system. Note that here we do not assume the finiteness of the local system. Let $T$ be a tree embedded in $X$ such that its set of vertices is the set $S$. Let $i$ denote the inclusion $T \hookrightarrow X$ then there exists the following natural restriction map
$$i^* : \mathrm{H}^i(X, F) \longrightarrow \mathrm{H}^i(T, F|_T)$$
Question : Why is the above map an isomorphism in all degrees $i$?
My attempt : Let $U := X \setminus T$ be the complement of the tree $T$ and let $j$ denote the inclusion $U \hookrightarrow X$. I have tried to write the long exact sequence associated to the standard triangle and have arrived at the conclusion that I need to prove that $\mathrm{H}^i(X, j_!j^*F) = 0$ for all degrees $i$. I can certainly try and relate this to compactly supported cohomology of the sheaf which might be easier to compute but I cannot get any further than that.
Motivation : Once we have the above claimed isomorphism, then using the description of the cohomology of a constructible sheaf on a simplicial set that is $T$, we can in particular prove that the cohomology of any constructible sheaf on an affine line vanishes in degree greater than 1. This is an implication of the Andreotti-Frankel theorem. This can be found for example as Remark 1.4 in Constructible sheaves by M.V.Nori, and as the first Lemma in $\S 7.2$ of Intersection Homology by M. Goresky, R. MacPherson.
Any help with solution or finding a reference is appreciated. Thanks in advance.