Assume that the following two properties are satisfied:
The sphere $S_X = S_X(x_0) = \{ x \in X \mid d(x,x_0) = 1 \}$ is not compact.
For each $x \in S_X$ and each $n \in \mathbb N$ there exists $x' \in X \setminus F$ such that $d(x',x) < 1/n$.
Then there exists an open neigborhood $G$ of $F$ in $X$ which does not admit an open ball $B = B(x_0,r) = \{x \in X \mid d(x,x_0) < r \}$ such that $F \subset B \subset G$.
Proof. Since $S_X$ is not compact, there exists a sequence $(x_n)$ in $S_X$ which has no convergent subsequence. Pick $x'_n \in X \setminus F$ such that $d(x'_n,x_n) < 1/n$. Let $A = \{x'_n \mid n \in \mathbb N\}$. Clearly $$F \subset G = X \setminus A.$$
- We claim that $A$ is closed in $X$ (i.e. that $G$ is an open neigborhood of $F$ in $X$).
Assume that $A$ is not closed in $X$. Then there exists $\xi \in X \setminus A$ and a sequence $(\xi_k)$ in $A$ such that $\xi_k \to \xi$. Write $\xi_k = x'_{n_k}$. The sequence $(n_k)$ cannot be bounded (otherwise all $\xi_k$ would be contained in a finite subset $A' \subset A$ which would imply $\xi \in A'$). Thus we may assume w.l.o.g. that $(n_k)$ is strictly increasing. But then $x_{n_k} \to \xi$ which is a contradiction: In fact, for each $\epsilon > 0$ we get $d(x_{n_k},\xi) \le d(x_{n_k},x'_{n_k}) + d(x'_{n_k},\xi) < 1/n_k + d(\xi_k,\xi) < \epsilon$ for $k \ge k_0$.
Now assume that $F \subset B(x_0,r) \subset G$ for some $r$.
We claim that we must have $r > 1$.
Assume that $F \subset B(x_0,r)$ for some $r \le 1$. Then certainly $F \subset B(x_0,1)$. Since $S_X \subset F$ and $S \cap B(x_0,1) = \emptyset$, we conclude $S_X = \emptyset$ which is compact, a contradiction.
$B(x_0,r) \subset G$ means that $B(x_0,r) \cap A = \emptyset$. Pick $n$ such that $1 + 1/n < r$. We have $x'_n \in A$ and $d(x'_n,x_n) < 1/n$, hence $d(x'_n,x_0) \le d(x'_n,x_n) + d(x_n,x_0) < 1/n + 1 < r$, thus $x'_n \in B(x_0,r)$ which is a contradiction.
Let us now give some examples.
Let $(V, \lVert - \rVert)$ be a normed linear space. It is a metric space via $d(v,w) = \lVert v - w \rVert$. Each subset $X \subset V$ inherits a metric from $V$ which will again be denoted by $d$.
Let $S = S_V(0)$ denote the sphere in $V$ with center $0$ and radius $1$. Take any non-compact subset $S_0 \subset S$ and define $X = \{ t \cdot x \mid t \in [0,\infty), x \in S_0 \}$. Take $x_0 = 0$. Then 1. is satisfied because $S_X = S_0$ and 2. is trivially satisfied by taking $x' = (1 +1/2n)x$.
This covers Moishe Kohan's answer: In an infinite-dimensional normed linear space $V$ the sphere $S$ is never compact, thus we may take $X = V$ and $x_0 = 0$.
In $V = \mathbb R^n$ we may take $X = V \setminus \{x\}$ for any $x \in S$. In that case we can argue more directly than with a sequence $(x'_n)$ as in the above proof. Simply take $G = B(-x,2)$.
Update:
There are also counterexamples in case $S_X$ (or even $F$) is compact.
Write points $x \in \mathbb R^n$ as $x = (x_1,\ldots, x_n)$ and define subsets $A, B, H, X \subset \mathbb R^n$ by
$$A = \{ x \in \mathbb R^n \mid \lVert x \rVert \le 1 , x_n \ge 0\} = \text{ closed upper unit halfball in } \mathbb R^n,$$
$$B = \{ x \in \mathbb R^n \mid \lVert x \rVert > 1 \} = \text{ exterior of the closed unit ball} ,$$
$$H = \{ x \in \mathbb R^n \mid x_n < -1 \} = \text{ open halfspace with } x_n < - 1 ,$$
$$X = A \cup B .$$
For $x_0 = 0$ we get $S_X = \{ x \in \mathbb R^n \mid \lVert x \rVert = 1 , x_n \ge 0\}$ and $F = A$ which are both compact sets. We have $H \subset B \subset X$. Let $N =(0,\ldots,0,1)$ be the north pole of $A$.
The open ball $B(N,2)$ in $X$ clearly contains $F = A$. We claim that there does not exist an open ball $B(0,r)$ such that $F \subset B(0,r) \subset B(N,2)$.
Let $r > 0$ such that $F \subset B(0,r)$. This is possible only when $r > 1$. The ball $B(N,2)$ does not intersect $H$, but the ball $B(0,r)$ does. Thus it is impossible that $B(0,r) \subset B(N,2)$.