Disclaimer: This is community wiki; feel free to correct, edit, expand etc.! ;)
(This is a slight modification taken from Rudin, Real and Complex Analysis.)
Regard for simplicity:
$$C:=B\subseteq A^\complement=:U$$
Denote for construction the rationals:
$$S:=\mathbb{Q}\cap[0,1]$$
By normality one can find inductively open $V_s$ for $s \in S$ such that
$$C\subseteq V_1, \quad \overline{V_0}\subseteq U,\quad V_s\subseteq\overline{V_{s'}} \text{ for } s>s' .$$
Consider the upper and lower semicontinuous functions:
$$\underline{h}_s:=s\chi_{V_s}:\quad\underline{h}_s^{-1}(a,\infty)=\varnothing,V_s,\Omega\in\mathcal{T}$$
$$\overline{h}_s:=(1-s)\chi_{\overline{V_s}}+s:\quad\overline{h}_s^{-1}(-\infty,b)=\varnothing,\overline{V_s}^\complement,\Omega\in\mathcal{T}$$
Pointwise suprema resp. infima preserve lower resp. upper semicontinuity:
$$\underline{h}:=\sup_{s\in S}\underline{h}_s:\quad\underline{h}^{-1}(a,\infty)=\{\omega:\underline{h}(\omega)>a\}=\bigcup_{s\in S}\{\omega:\underline{h}_s(\omega)>a\}=\bigcup_{s\in S}\underline{h}_s^{-1}(a,\infty)\in\mathcal{T}$$
$$\overline{h}:=\inf_{s\in S}\overline{h}_s:\quad\overline{h}^{-1}(-\infty,b)=\{\omega:\overline{h}(\omega)<b\}=\bigcup_{s\in S}\{\omega:\overline{h}_s(\omega)<b\}=\bigcup_{s\in S}\overline{h}_s^{-1}(-\infty,b)\in\mathcal{T}$$
They approach each other as by contradiction:
$$\underline{h}(\omega)<s<s'<\overline{h}(\omega)\implies\omega\in\overline{V_{s'}}\subseteq V_s\not\owns\omega$$
$$\underline{h}_s(\omega)>\overline{h}_{s'}(\omega)\implies\omega\in V_s\subseteq\overline{V_s}\subseteq V_{s'}\subseteq\overline{V_{s'}}\not\owns\omega\quad(s>s')$$
So they together become continuous:
$$h:=\overline{h}=\underline{h}:\quad h^{-1}(c-\varepsilon,c+\varepsilon)=h^{-1}(-\infty,c+\varepsilon)\cup h^{-1}(c-\varepsilon,\infty)\in\mathcal{T}$$
Thus the limiting function is the desired bump:
$$h(C)\subseteq h(V_1)\equiv1,\,h(U^\complement)\subseteq h(\overline{V_0}^\complement)\equiv0$$