See the (?) definition of weakly convex:
Weakly convex functions are convex
$f$ is weakly convex if for every $C_0^\infty$ function $\phi \geq 0$ that $$\int f(x)[\phi(x+h) + \phi(x-h) - 2\phi(x)]dx \geq 0
$$ for all $h \in \mathbb{R}$. Let $\phi^h(x) = \phi(x+h) + \phi(x-h) - 2\phi(x)$. Without loss of generality, suppose that $\phi \neq 0$ identically and then rescale so that $\int \phi = 1$.
A convex function on $\mathbb{R}$ is always continuous, so our weakly convex function that is not convex would need to be not continuous.
We then see that since it is defined in terms of an integral, that a function is still weakly convex if one changes it on a set of measure zero (or, if you are not familiar with measure theory, also any finite or countable set). The requirement of continuity precludes changing the function on a set of measure zero without "messing up" the integral. For instance, $\chi_{\mathbb{Q}}$ is weakly convex, but not continuous.
If you were looking for an example that is not "essentially" continuous, meaning that it is really just a continuous function that has been modified on a set of measure zero, then I don't think that there are any, but I can't prove it.
If one means weakly convex in terms of what the other person answering this question is defining it: $f(x/2 + y/2) \leq f(x)/2 + f(y)/2$, then one has to go no farther than the famous $\mathbb{Q}$-linear function from $\mathbb{R}$ to $\mathbb{R}$ that is not continuous. See: https://en.wikipedia.org/wiki/Discontinuous_linear_map#General_existence_theorem
using the axiom of choice.